Skip to content
Commits on Source (10)
Overview of changes in 43.0
===============================
* Drop flickr plugin: It pulls soup2 - Bilal Elmoussaoui
* build: reduce libdazzle usage - Stephan Vedder
* Translations updates
Overview of changes in 43.beta
===============================
* Build with soup3, drops libgfbgraph as it is not compatible with soup3 / rest 1.0 - Bilal Elmoussaoui
......
......@@ -35,7 +35,7 @@
<kudo>UserDocs</kudo>
</kudos>
<releases>
<release version="43.beta" date="2022-08-07" type="development"/>
<release version="43.0" date="2022-09-20"/>
<release version="42.0" date="2022-03-19">
<description>
<ul>
......
......@@ -204,65 +204,6 @@
}
]
},
{
"name": "grilo",
"buildsystem": "meson",
"cleanup": [
"/bin"
],
"config-opts": [
"-Denable-introspection=false",
"-Denable-grl-net=true",
"-Denable-grl-pls=false",
"-Denable-gtk-doc=false",
"-Denable-test-ui=false",
"-Denable-vala=false"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/grilo.git"
}
]
},
{
"name": "grilo-plugins",
"buildsystem": "meson",
"cleanup": [
"/include",
"/share/help"
],
"config-opts": [
"-Denable-bookmarks=no",
"-Denable-chromaprint=no",
"-Denable-dleyna=no",
"-Denable-dmap=no",
"-Denable-filesystem=no",
"-Denable-flickr=yes",
"-Denable-freebox=no",
"-Denable-gravatar=no",
"-Denable-local-metadata=no",
"-Denable-lua-factory=no",
"-Denable-magnatune=no",
"-Denable-metadata-store=no",
"-Denable-opensubtitles=no",
"-Denable-optical-media=no",
"-Denable-podcasts=no",
"-Denable-raitv=no",
"-Denable-shoutcast=no",
"-Denable-thetvdb=no",
"-Denable-tmdb=no",
"-Denable-tracker=no",
"-Denable-youtube=no",
"--wrap-mode=nofallback"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/grilo-plugins.git"
}
]
},
{
"name": "tracker-miners",
"buildsystem": "meson",
......
......@@ -21,3 +21,4 @@ ru
sv
tr
uk
zh_CN
......@@ -3,14 +3,14 @@
# This file is distributed under the same license as the gnome-photo package.
# Alain Lojewski <allomervan@gmail.com>, 2014
# Guillaume Bernard <translate@filorin.fr>, 2014, 2015.
# Charles Monzat <charles.monzat@free.fr>, 2020.
# Charles Monzat <charles.monzat@free.fr>, 2020-2022.
#
msgid ""
msgstr ""
"Project-Id-Version: gnome-photos\n"
"Report-Msgid-Bugs-To: https://bugzilla.gnome.org\n"
"POT-Creation-Date: 2020-08-25 17:11+0000\n"
"PO-Revision-Date: 2020-09-02 14:09+0200\n"
"POT-Creation-Date: 2021-04-27 15:11+0000\n"
"PO-Revision-Date: 2022-04-11 22:41+0200\n"
"Last-Translator: Charles Monzat <charles.monzat@free.fr>\n"
"Language-Team: GNOME French Team <gnomefr@traduc.org>\n"
"Language: fr\n"
......@@ -18,7 +18,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: Gtranslator 3.36.0\n"
"X-Generator: Gtranslator 40.0\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
......@@ -71,9 +71,6 @@ msgstr "Marquage de vos favoris"
#. (itstool) path: page/p
#: C/favorites-set.page:27
#| msgid ""
#| "Photos or albums can be marked as favorites from the <gui style=\"tab"
#| "\">Recent</gui> tab or <gui style=\"tab\">Albums</gui> tab."
msgid ""
"Photos or albums can be marked as favorites from the <gui style=\"tab"
"\">Photos</gui> tab or <gui style=\"tab\">Albums</gui> tab."
......@@ -89,9 +86,6 @@ msgstr "Pour marquer des éléments en favoris :"
#. (itstool) path: item/p
#: C/favorites-set.page:33
#| msgid ""
#| "Select the <gui>Albums</gui> tab or <gui>Recent</gui> tab depending on "
#| "whether you want to mark an album or a photo as a favorite."
msgid ""
"Select the <gui>Albums</gui> tab or <gui>Photos</gui> tab depending on "
"whether you want to mark an album or a photo as a favorite."
......@@ -159,13 +153,13 @@ msgstr ""
#: C/legal.xml:5
msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License"
msgstr ""
"Creative Commons Paternité-Partage dans des Conditions Identiques à "
"l’Initiale 3.0 non transposé"
"Licence Creative Commons Attribution - Partage dans les Mêmes Conditions 3.0 "
"non transposé"
#. (itstool) path: license/p
#: C/legal.xml:4
msgid "This work is licensed under a <_:link-1/>."
msgstr "Ce travail est sous licence <_:link-1/>."
msgstr "Cette œuvre est distribuée sous <_:link-1/>."
#. (itstool) path: info/desc
#: C/view-album.page:21
......@@ -256,12 +250,6 @@ msgstr "Affichage des photos récentes"
#. (itstool) path: page/p
#: C/view-photos.page:21
#| msgid ""
#| "The <gui style=\"tab\">Recent</gui> tab displays photos from local file "
#| "system locations such as <file>~/Downloads</file>, <file>~/Pictures</"
#| "file> and from online collections. You can also add other locations, even "
#| "cloud-based collections such as Flickr or Facebook photographs, through "
#| "<app>GNOME Online Accounts</app>."
msgid ""
"The <gui style=\"tab\">Photos</gui> tab displays photos from local file "
"system locations such as <file>~/Downloads</file>, <file>~/Pictures</file> "
......@@ -287,9 +275,6 @@ msgstr "Aller à <guiseq><gui>Préférences</gui><gui>Rechercher</gui></guiseq>.
#. (itstool) path: item/p
#: C/view-photos.page:34
#| msgid ""
#| "Click on the gear button on the bottom right. You can select the "
#| "locations you want to display in the <gui style=\"tab\">Recent</gui> tab."
msgid ""
"Click on the gear button on the bottom right. You can select the locations "
"you want to display in the <gui style=\"tab\">Photos</gui> tab."
......@@ -305,7 +290,6 @@ msgstr "Pour afficher les photos récentes :"
#. (itstool) path: item/p
#: C/view-photos.page:43
#| msgid "Select the <gui style=\"tab\">Favorites</gui> tab."
msgid "Select the <gui style=\"tab\">Photos</gui> tab."
msgstr "Sélectionnez l’onglet <gui style=\"tab\">Photos</gui>."
......@@ -326,11 +310,6 @@ msgstr "Affichage des images"
#. (itstool) path: page/p
#: C/view.page:26
#| msgid ""
#| "When <app>Photos</app> is opened, you will see the <gui>Recent</gui> tab "
#| "open. The <gui>Recent</gui> tab contains images from your computer, the "
#| "<gui>Albums</gui> tab contains your photo albums, and any image you mark "
#| "as a favourite can be found in the <gui>Favorites</gui> tab."
msgid ""
"When <app>Photos</app> is opened, you will see the <gui>Photos</gui> tab "
"open. The <gui>Photos</gui> tab contains images from your computer, the "
......
# Chinese (China) translation for gnome-photos.
# Copyright (C) 2022 gnome-photos's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-photos package.
# Boyuan Yang <073plan@gmail.com>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: gnome-photos master\n"
"POT-Creation-Date: 2022-08-25 10:50+0000\n"
"PO-Revision-Date: 2022-09-13 13:58-0400\n"
"Last-Translator: Boyuan Yang <073plan@gmail.com>\n"
"Language-Team: Chinese (China) <i18n-zh@googlegroups.com>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.1.1\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr ""
#. (itstool) path: credit/name
#: C/favorites.page:11 C/favorites-set.page:12 C/view-album.page:11
#: C/view-favorites.page:11 C/view.page:11
msgid "Venkatesh Tahiliani"
msgstr "Venkatesh Tahiliani"
#. (itstool) path: credit/name
#: C/favorites.page:15 C/favorites-set.page:16 C/view-album.page:15
#: C/view-favorites.page:15 C/view.page:15
msgid "Aruna Sankaranarayanan"
msgstr "Aruna Sankaranarayanan"
#. (itstool) path: info/desc
#: C/favorites.page:21
msgid "Tag a special image or album as a favorite."
msgstr ""
#. (itstool) path: page/title
#: C/favorites.page:25
msgid "Favorite photos"
msgstr "收藏的照片"
#. (itstool) path: page/p
#: C/favorites.page:26
msgid ""
"You can label photos or images that you particularly like as favorites to "
"store them for easy access in the <gui>Favorites</gui> tab."
msgstr ""
#. (itstool) path: info/desc
#: C/favorites-set.page:22
msgid "Pick favorites from <app>Photos</app>."
msgstr ""
#. (itstool) path: page/title
#: C/favorites-set.page:25
msgid "Tag your favorites"
msgstr "标记您的收藏"
#. (itstool) path: page/p
#: C/favorites-set.page:27
msgid ""
"Photos or albums can be marked as favorites from the <gui "
"style=\"tab\">Photos</gui> tab or <gui style=\"tab\">Albums</gui> tab."
msgstr ""
#. (itstool) path: steps/title
#: C/favorites-set.page:31
msgid "To label favorite items:"
msgstr ""
#. (itstool) path: item/p
#: C/favorites-set.page:33
msgid ""
"Select the <gui>Albums</gui> tab or <gui>Photos</gui> tab depending on "
"whether you want to mark an album or a photo as a favorite."
msgstr ""
#. (itstool) path: item/p
#: C/favorites-set.page:37
msgid "Switch on the selection mode."
msgstr ""
#. (itstool) path: item/p
#: C/favorites-set.page:40
msgid "Select all the items you want to favorite."
msgstr ""
#. (itstool) path: item/p
#: C/favorites-set.page:43
msgid ""
"To finish, select the button with the picture of a star from the toolbar at "
"the bottom."
msgstr ""
#. (itstool) path: page/p
#: C/favorites-set.page:48
msgid "Your favorite items can now be found in the <gui>Favorites</gui> tab."
msgstr ""
#. (itstool) path: info/title
#: C/index.page:7
msgctxt "text"
msgid "Photos"
msgstr "照片"
#. (itstool) path: info/desc
#: C/index.page:12
msgid "<app>Photos</app> is a personalised photo manager tool from GNOME."
msgstr ""
#. (itstool) path: page/title
#: C/index.page:16
msgid "<_:media-1/> Photos"
msgstr "<_:media-1/> 照片"
#. (itstool) path: page/p
#: C/index.page:21
msgid ""
"<app>Photos</app> can be used to organise and manage your images in an "
"engaging and personalized manner. In addition to creating albums out of "
"images on your computer, you can integrate your Facebook and Flickr albums "
"with <app>Photos</app>. You can also set photos you like as your desktop "
"wallpaper, or easily bookmark them as favorites."
msgstr ""
#. (itstool) path: p/link
#: C/legal.xml:5
msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License"
msgstr "知识共享 署名-相同方式共享 3.0 未移植版许可证"
#. (itstool) path: license/p
#: C/legal.xml:4
msgid "This work is licensed under a <_:link-1/>."
msgstr "此作品在 <_:link-1/> 下授权。"
#. (itstool) path: info/desc
#: C/view-album.page:21
msgid "Open a photo from your albums."
msgstr ""
#. (itstool) path: page/title
#: C/view-album.page:24
msgid "View photos from an album"
msgstr ""
#. (itstool) path: page/p
#: C/view-album.page:25
msgid "To open a photo located in a specific album:"
msgstr ""
#. (itstool) path: item/p
#: C/view-album.page:29
msgid "Select the <gui style=\"tab\">Albums</gui> tab."
msgstr ""
#. (itstool) path: item/p
#: C/view-album.page:32
msgid "Select the album which contains the photo."
msgstr "选择包含照片的相册。"
#. (itstool) path: item/p
#: C/view-album.page:35
msgid ""
"You will see a grid of photos from the album you selected. Select a photo "
"from the grid to open it."
msgstr ""
#. (itstool) path: info/desc
#: C/view-favorites.page:21
msgid "Open your favorite photos."
msgstr "打开您收藏的照片。"
#. (itstool) path: page/title
#: C/view-favorites.page:24
msgid "View photos marked as favorites."
msgstr "查看收藏的照片。"
#. (itstool) path: page/p
#: C/view-favorites.page:26
msgid ""
"Your <link xref=\"favorites\">favorite</link> photos are located in the "
"<gui>Favorites</gui> tab."
msgstr ""
#. (itstool) path: steps/title
#: C/view-favorites.page:30
msgid "To open a photo tagged as a favorite:"
msgstr ""
#. (itstool) path: item/p
#: C/view-favorites.page:32
msgid "Select the <gui style=\"tab\">Favorites</gui> tab."
msgstr ""
#. (itstool) path: item/p
#: C/view-favorites.page:35
msgid ""
"Select photo you want to open, or use the arrow keys to navigate to the "
"photo and press <key>Enter</key>."
msgstr ""
#. (itstool) path: credit/name
#: C/view-photos.page:10
msgid "Rashi Aswani"
msgstr "Rashi Aswani"
#. (itstool) path: info/desc
#: C/view-photos.page:16
msgid "Open your recent photos."
msgstr "打开您最近的照片。"
#. (itstool) path: page/title
#: C/view-photos.page:19
msgid "View recent photos"
msgstr "查看最近的照片"
#. (itstool) path: page/p
#: C/view-photos.page:21
msgid ""
"The <gui style=\"tab\">Photos</gui> tab displays photos from local file "
"system locations such as <file>~/Downloads</file>, <file>~/Pictures</file> "
"and from online collections. You can also add other locations, even cloud-"
"based collections such as Flickr or Facebook photographs, through <app>GNOME "
"Online Accounts</app>."
msgstr ""
#. (itstool) path: page/p
#: C/view-photos.page:27
msgid "To add other local file system locations:"
msgstr "如需添加其它本地文件系统位置:"
#. (itstool) path: item/p
#: C/view-photos.page:31
msgid "Go to <guiseq><gui>Settings</gui><gui>Search</gui></guiseq>."
msgstr ""
#. (itstool) path: item/p
#: C/view-photos.page:34
msgid ""
"Click on the gear button on the bottom right. You can select the locations "
"you want to display in the <gui style=\"tab\">Photos</gui> tab."
msgstr ""
#. (itstool) path: page/p
#: C/view-photos.page:40
msgid "To view recent photos:"
msgstr ""
#. (itstool) path: item/p
#: C/view-photos.page:43
msgid "Select the <gui style=\"tab\">Photos</gui> tab."
msgstr ""
#. (itstool) path: item/p
#: C/view-photos.page:46
msgid "You will see a grid of photos. Select a photo from the grid to open it."
msgstr ""
#. (itstool) path: info/desc
#: C/view.page:21
msgid "Open a photo for viewing."
msgstr "打开照片以查看。"
#. (itstool) path: page/title
#: C/view.page:24
msgid "View images"
msgstr "查看图像"
#. (itstool) path: page/p
#: C/view.page:26
msgid ""
"When <app>Photos</app> is opened, you will see the <gui>Photos</gui> tab "
"open. The <gui>Photos</gui> tab contains images from your computer, the "
"<gui>Albums</gui> tab contains your photo albums, and any image you mark as "
"a favourite can be found in the <gui>Favorites</gui> tab."
msgstr ""
project(
'gnome-photos',
'c',
version: '43.beta',
version: '43.0',
license: 'GPL3+',
default_options: 'buildtype=debugoptimized',
meson_version: '>= 0.50.0',
......@@ -168,7 +168,6 @@ goa_dep = dependency('goa-1.0', version: '>= 3.8.0')
config_h.set('GOA_API_IS_SUBJECT_TO_CHANGE', true)
gobject_dep = dependency('gobject-2.0')
grilo_dep = dependency('grilo-0.3', version: '>= 0.3.5')
gsettings_desktop_schemas_dep = dependency('gsettings-desktop-schemas')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.22.16')
gtk_unix_print_dep = dependency('gtk+-unix-print-3.0')
......
......@@ -13,7 +13,6 @@ src/photos-empty-results-box.c
src/photos-export-dialog.ui
src/photos-export-dialog.c
src/photos-export-notification.c
src/photos-flickr-item.c
src/photos-google-item.c
src/photos-help-overlay.ui
src/photos-import-dialog.c
......
......@@ -3,7 +3,7 @@ msgstr ""
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-photos/issues\n"
"POT-Creation-Date: 2022-06-30 19:05+0000\n"
"Last-Translator: Нанба Наала <naala-nanba@rambler.ru>\n"
"Language-Team: Abkhazian <ab@li.org>\n"
"Language-Team: Abkhazian <daniel.abzakh@gmail.com>\n"
"Language: ab\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
......@@ -290,7 +290,7 @@ msgstr[1] ""
#: src/photos-export-notification.c:347
msgid "Analyze"
msgstr ""
msgstr "Анализҟаҵара"
#: src/photos-export-notification.c:352
msgid "Empty Trash"
......@@ -610,7 +610,7 @@ msgstr ""
#: src/photos-preview-menu.ui:41
msgid "Fullscreen"
msgstr ""
msgstr "Аекран зегьы иҭаӡо"
#: src/photos-primary-menu.ui:6
msgid "Keyboard Shortcuts"
......@@ -647,7 +647,7 @@ msgstr ""
#: src/photos-print-setup.c:885
msgid "_Top:"
msgstr ""
msgstr "_Хыхьтәи:"
#: src/photos-print-setup.c:886
msgid "_Bottom:"
......@@ -667,7 +667,7 @@ msgstr ""
#: src/photos-print-setup.c:894
msgid "Vertical"
msgstr ""
msgstr "Гәҵәыла"
#: src/photos-print-setup.c:895
msgid "Both"
......@@ -679,7 +679,7 @@ msgstr ""
#: src/photos-print-setup.c:912
msgid "_Height:"
msgstr ""
msgstr "_Аҳаракыра:"
#: src/photos-print-setup.c:914
msgid "_Scaling:"
......@@ -763,7 +763,7 @@ msgstr ""
#: src/photos-properties-dialog.c:545
msgid "Aperture"
msgstr ""
msgstr "Апертура"
#: src/photos-properties-dialog.c:555
msgid "Focal Length"
......@@ -771,7 +771,7 @@ msgstr ""
#: src/photos-properties-dialog.c:565
msgid "ISO Speed"
msgstr ""
msgstr "ISO"
#: src/photos-properties-dialog.c:575
msgid "Flash"
......@@ -794,7 +794,7 @@ msgstr ""
#: src/photos-properties-dialog.c:723
msgid "On, fired"
msgstr ""
msgstr "Иаҿакуп, аус ауит"
#: src/photos-properties-dialog.c:760
msgid "Discard all Edits"
......@@ -807,7 +807,7 @@ msgstr ""
#: src/photos-search-match-manager.c:149 src/photos-search-type-manager.c:74
#: src/photos-source-manager.c:396
msgid "All"
msgstr ""
msgstr "Зегьы"
#. Translators: "Title" refers to "Match Title" when searching.
#: src/photos-search-match-manager.c:155
......
......@@ -7,20 +7,20 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-photos gnome-3-24\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-photos/issues\n"
"POT-Creation-Date: 2021-09-08 08:47+0000\n"
"PO-Revision-Date: 2021-09-08 10:46+0200\n"
"POT-Creation-Date: 2022-08-11 15:29+0000\n"
"PO-Revision-Date: 2022-08-17 13:29+0200\n"
"Last-Translator: gogo <trebelnik2@gmail.com>\n"
"Language-Team: Croatian <hr@li.org>\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"
"X-Generator: Poedit 2.3\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-Generator: Poedit 3.1.1\n"
#: data/org.gnome.Photos.appdata.xml.in:7 data/org.gnome.Photos.desktop.in.in:3
#: src/photos-application.c:3030 src/photos-embed.c:822
#: src/photos-application.c:2922 src/photos-embed.c:822
#: src/photos-main-window.c:437 src/photos-search-type-manager.c:101
msgid "Photos"
msgstr "Fotografije"
......@@ -74,17 +74,17 @@ msgstr "Ispisivati fotografije"
#: data/org.gnome.Photos.appdata.xml.in:25
msgid "Select favorites"
msgstr "Odabrati omiljene"
msgstr "Odabrati omiljene fotografije"
#: data/org.gnome.Photos.appdata.xml.in:26
msgid ""
"Easily edit your pictures in the app, or send to a full featured editor for "
"more advanced changes"
msgstr ""
"S lakoćom uređivati svoje slike u aplikaciji ili slanje u naprednijeg "
"uređivača fotografija za naprednije promjene"
"S lakoćom uređivati svoje slike u aplikaciji, ili ih poslati u naprednijeg "
"uređivača fotografija kako bi učinili naprednije promjene"
#: data/org.gnome.Photos.appdata.xml.in:99
#: data/org.gnome.Photos.appdata.xml.in:109
msgid "The GNOME Project"
msgstr "GNOME projekt"
......@@ -121,11 +121,11 @@ msgstr "Prozor uvećan"
msgid "Window maximized state"
msgstr "Stanje uvećanog prozora"
#: src/photos-application.c:168
#: src/photos-application.c:167
msgid "Show the empty state"
msgstr "Prikaži prazno stanje"
#: src/photos-application.c:169
#: src/photos-application.c:168
msgid "Show the application's version"
msgstr "Prikaži inačicu aplikacije"
......@@ -138,16 +138,16 @@ msgstr "Prikaži inačicu aplikacije"
#. Translators: this is the name of the default album that will be
#. * created for imported photos.
#.
#: src/photos-application.c:1310 src/photos-export-dialog.c:195
#: src/photos-application.c:1270 src/photos-export-dialog.c:195
#: src/photos-import-dialog.c:134
msgid "%-d %B %Y"
msgstr "%-d %B %Y"
#: src/photos-base-item.c:1034
#: src/photos-base-item.c:1032
msgid "Album"
msgstr "Album"
#: src/photos-base-item.c:2862
#: src/photos-base-item.c:2860
msgid "Screenshots"
msgstr "Slike zaslona"
......@@ -331,7 +331,6 @@ msgstr "Mapa izvoza"
#. Translators: this is the fallback title in the form
#. * "Facebook — 2nd January 2013".
#.
#: src/photos-facebook-item.c:100 src/photos-flickr-item.c:102
#: src/photos-google-item.c:98
#, c-format
msgid "%s — %s"
......@@ -512,7 +511,7 @@ msgstr "Vaše fotografije se dodaju"
msgid "Some photos might not be available during this process"
msgstr "Određene fotografije možda neće biti dostupne tijekom ovog procesa"
#: src/photos-item-manager.c:845
#: src/photos-item-manager.c:842
#, c-format
msgid "Oops! Unable to load “%s”"
msgstr "Ups! Nemoguće je učitati “%s”"
......@@ -822,7 +821,7 @@ msgstr "Pri, bljeskalici"
msgid "Discard all Edits"
msgstr "Odbaci sve promjene"
#: src/photos-removable-devices-button.ui:47
#: src/photos-removable-devices-button.ui:48
msgid "Devices"
msgstr "Uređaji"
......@@ -1050,11 +1049,11 @@ msgstr "Hometown"
msgid "Filters"
msgstr "Filtri"
#: src/photos-tracker-controller.c:174
#: src/photos-tracker-controller.c:168
msgid "Unable to find Tracker on your operating system"
msgstr "Nemoguć je pronalazak Pratitelja na vašem operativnom sustavu"
#: src/photos-tracker-controller.c:176
#: src/photos-tracker-controller.c:170
msgid "Unable to fetch the list of photos"
msgstr "Nemoguće preuzimanje popisa fotografija"
......
# Turkish translation for gnome-photos.
# Copyright (C) 2013-2021 gnome-photos's COPYRIGHT HOLDER
# Copyright (C) 2013-2022 gnome-photos's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-photos package.
#
# Gökhan Gurbetoğlu <ggurbet@gmail.com>, 2013, 2014, 2015.
......@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-photos master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-photos/issues\n"
"POT-Creation-Date: 2021-05-06 11:22+0000\n"
"POT-Creation-Date: 2022-08-11 15:29+0000\n"
"PO-Revision-Date: 2021-07-13 17:45+0300\n"
"Last-Translator: Burhan KELEŞ <klsburhan@hotmail.com>\n"
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
......@@ -25,7 +25,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#: data/org.gnome.Photos.appdata.xml.in:7 data/org.gnome.Photos.desktop.in.in:3
#: src/photos-application.c:3030 src/photos-embed.c:822
#: src/photos-application.c:2922 src/photos-embed.c:822
#: src/photos-main-window.c:437 src/photos-search-type-manager.c:101
msgid "Photos"
msgstr "Fotoğraflar"
......@@ -88,7 +88,7 @@ msgstr ""
"Fotoğraflarınızı uygulamada kolayca düzenleyin veya daha gelişmiş "
"değişiklikler için tam özellikli düzenleyiciye gönderin"
#: data/org.gnome.Photos.appdata.xml.in:99
#: data/org.gnome.Photos.appdata.xml.in:109
msgid "The GNOME Project"
msgstr "GNOME Projesi"
......@@ -125,11 +125,11 @@ msgstr "Pencere ekranı kapladı"
msgid "Window maximized state"
msgstr "Pencerenin ekranı kapladığı durum"
#: src/photos-application.c:168
#: src/photos-application.c:167
msgid "Show the empty state"
msgstr "Boş durumu göster"
#: src/photos-application.c:169
#: src/photos-application.c:168
msgid "Show the application's version"
msgstr "Uygulamanın sürümünü göster"
......@@ -142,16 +142,16 @@ msgstr "Uygulamanın sürümünü göster"
#. Translators: this is the name of the default album that will be
#. * created for imported photos.
#.
#: src/photos-application.c:1310 src/photos-export-dialog.c:195
#: src/photos-application.c:1270 src/photos-export-dialog.c:195
#: src/photos-import-dialog.c:134
msgid "%-d %B %Y"
msgstr "%-d %B %Y"
#: src/photos-base-item.c:1034
#: src/photos-base-item.c:1032
msgid "Album"
msgstr "Albüm"
#: src/photos-base-item.c:2862
#: src/photos-base-item.c:2860
msgid "Screenshots"
msgstr "Ekran görüntüleri"
......@@ -331,7 +331,6 @@ msgstr "Dışa Aktarım Klasörü"
#. Translators: this is the fallback title in the form
#. * "Facebook — 2nd January 2013".
#.
#: src/photos-facebook-item.c:100 src/photos-flickr-item.c:102
#: src/photos-google-item.c:98
#, c-format
msgid "%s — %s"
......@@ -512,7 +511,7 @@ msgstr "Fotoğraflarınız dizine ekleniyor"
msgid "Some photos might not be available during this process"
msgstr "Bazı fotoğraflar bu işlem sırasında kullanım dışı olabilir"
#: src/photos-item-manager.c:845
#: src/photos-item-manager.c:842
#, c-format
msgid "Oops! Unable to load “%s”"
msgstr "Amanın! “%s” yüklenemedi"
......@@ -819,7 +818,7 @@ msgstr "Açık, patlatıldı"
msgid "Discard all Edits"
msgstr "Tüm düzenlemeleri at"
#: src/photos-removable-devices-button.ui:47
#: src/photos-removable-devices-button.ui:48
msgid "Devices"
msgstr "Aygıtlar"
......@@ -1047,94 +1046,10 @@ msgstr "Memleket"
msgid "Filters"
msgstr "Süzgeçler"
#: src/photos-tracker-controller.c:174
#: src/photos-tracker-controller.c:168
msgid "Unable to find Tracker on your operating system"
msgstr "İşletim sisteminizde Tracker bulunamadı"
#: src/photos-tracker-controller.c:176
#: src/photos-tracker-controller.c:170
msgid "Unable to fetch the list of photos"
msgstr "Fotoğrafların listesi alınamıyor"
#~ msgid "org.gnome.Photos"
#~ msgstr "org.gnome.Photos"
#~ msgid "About"
#~ msgstr "Hakkında"
#~ msgid "Quit"
#~ msgstr "Çık"
#~ msgid "It lets you:"
#~ msgstr "Şunları yapabilirsiniz:"
#~ msgid "Send photos to remote DLNA renderers"
#~ msgstr "Uzak DLNA oluşturuculara fotoğraf gönderin"
#~ msgid "Cancel"
#~ msgstr "Vazgeç"
#~ msgid "Name your first album"
#~ msgstr "İlk albümünüze ad verin"
#~ msgid "You can add your online accounts in %s"
#~ msgstr "Çevrim içi hesaplarınızı %s’dan ekleyebilirsiniz"
#~ msgid "Untitled Photo"
#~ msgstr "Adsız Fotoğraf"
#~ msgid ""
#~ "Copyright © 2013 Intel Corporation. All rights reserved.\n"
#~ "Copyright © 2014 – 2015 Pranav Kant\n"
#~ "Copyright © 2012 – 2017 Red Hat, Inc."
#~ msgstr ""
#~ "Telif Hakkı © 2013 Intel Corporation. Tüm hakları saklıdır.\n"
#~ "Telif Hakkı © 2014 – 2015 Pranav Kant\n"
#~ "Telif Hakkı © 2012 – 2017 Red Hat, Inc."
#~ msgid "Brightness"
#~ msgstr "Parlaklık"
#~ msgid "Width"
#~ msgstr "Genişlik"
#~ msgid "%a, %d %B %Y %X"
#~ msgstr "%d %B %Y %a, %X"
#~ msgid "%.1f (lens)"
#~ msgstr "%.1f (lens)"
#~ msgid "%.1f (35mm film)"
#~ msgstr "%.1f (35mm film)"
#~ msgid "Transformation on unloaded image."
#~ msgstr "Yüklenmemiş resim üzerinde dönüşüm."
#~ msgid "Transformation failed."
#~ msgstr "Dönüşüm başarısız oldu."
#~ msgid "EXIF not supported for this file format."
#~ msgstr "Bu dosya biçimi için EXIF desteklenmiyor."
#~ msgid "Image loading failed."
#~ msgstr "Resim yüklemesi başarısız oldu."
#~ msgid "No image loaded."
#~ msgstr "Hiçbir resim yüklenmedi."
#~ msgid "You do not have the permissions necessary to save the file."
#~ msgstr "Dosyayı kaydetmek için gerekli izinlere sahip değilsiniz."
#~ msgid "Temporary file creation failed."
#~ msgstr "Geçici dosya oluşturma başarısız oldu."
#~ msgid "At least two file names are equal."
#~ msgstr "En az iki dosya ismi birbiriyle aynı."
#~ msgid "Could not display help for Image Viewer"
#~ msgstr "Resim Görüntüleyici için yardım görüntülenemedi"
#~ msgid " (invalid Unicode)"
#~ msgstr " (geçersiz Unikod)"
#~ msgid "Recent"
#~ msgstr "Son kullanılan"
......@@ -122,7 +122,6 @@ gnome_photos_sources = files(
'photos-fetch-ids-job.c',
'photos-fetch-metas-job.c',
'photos-filterable.c',
'photos-flickr-item.c',
'photos-gesture-zoom.c',
#'photos-google-item.c',
'photos-image-view.c',
......@@ -379,7 +378,6 @@ deps = [
glib_dep,
goa_dep,
gobject_dep,
grilo_dep,
gsettings_desktop_schemas_dep,
gtk_dep,
gtk_unix_print_dep,
......
......@@ -35,7 +35,6 @@
#include <gio/gio.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <grilo.h>
#include <handy.h>
#include <libportal/portal.h>
#include <libportal-gtk3/portal-gtk3.h>
......@@ -2507,11 +2506,9 @@ static void
photos_application_startup (GApplication *application)
{
PhotosApplication *self = PHOTOS_APPLICATION (application);
GrlRegistry *registry;
GtkIconTheme *icon_theme;
GtkSettings *settings;
GVariant *state;
gboolean grl_plugins_loaded;
const gchar *delete_accels[3] = {"Delete", "KP_Delete", NULL};
const gchar *edit_accels[2] = {"<Primary>e", NULL};
const gchar *fullscreen_accels[2] = {"F11", NULL};
......@@ -2534,27 +2531,6 @@ photos_application_startup (GApplication *application)
photos_gegl_init ();
grl_init (NULL, NULL);
registry = grl_registry_get_default ();
{
g_autoptr (GError) error = NULL;
grl_plugins_loaded = grl_registry_load_all_plugins (registry, FALSE, &error);
if (error != NULL)
g_warning ("Unable to load Grilo plugins: %s", error->message);
}
if (grl_plugins_loaded)
{
{
g_autoptr (GError) error = NULL;
if (!grl_registry_activate_plugin_by_id (registry, "grl-flickr", &error))
g_warning ("Unable to activate Grilo's Flickr plugin: %s", error->message);
}
}
self->create_window_cancellable = g_cancellable_new ();
self->refresh_miner_ids = g_hash_table_new (g_direct_hash, g_direct_equal);
......
......@@ -134,8 +134,6 @@ G_DEFINE_ABSTRACT_TYPE_WITH_CODE (PhotosBaseItem, photos_base_item, G_TYPE_OBJEC
photos_base_item_main_box_item_iface_init)
G_IMPLEMENT_INTERFACE (PHOTOS_TYPE_FILTERABLE,
photos_base_item_filterable_iface_init));
DZL_DEFINE_COUNTER (instances, "PhotosBaseItem", "Instances", "Number of PhotosBaseItem instances")
typedef struct _PhotosBaseItemMetadataAddSharedData PhotosBaseItemMetadataAddSharedData;
typedef struct _PhotosBaseItemQueryInfoData PhotosBaseItemQueryInfoData;
......@@ -3059,8 +3057,6 @@ photos_base_item_finalize (GObject *object)
g_mutex_clear (&priv->mutex_save_metadata);
G_OBJECT_CLASS (photos_base_item_parent_class)->finalize (object);
DZL_COUNTER_DEC (instances);
}
......@@ -3148,8 +3144,6 @@ photos_base_item_init (PhotosBaseItem *self)
{
PhotosBaseItemPrivate *priv;
DZL_COUNTER_INC (instances);
priv = photos_base_item_get_instance_private (self);
priv->cancellable = g_cancellable_new ();
......
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2013 – 2021 Red Hat, 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 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 <http://www.gnu.org/licenses/>.
*/
/* Based on code from:
* + Documents
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <goa/goa.h>
#include <grilo.h>
#include "photos-base-manager.h"
#include "photos-debug.h"
#include "photos-error.h"
#include "photos-flickr-item.h"
#include "photos-search-context.h"
#include "photos-source.h"
#include "photos-utils.h"
struct _PhotosFlickrItem
{
PhotosBaseItem parent_instance;
PhotosBaseManager *src_mngr;
};
G_DEFINE_TYPE_WITH_CODE (PhotosFlickrItem, photos_flickr_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
g_io_extension_point_implement (PHOTOS_BASE_ITEM_EXTENSION_POINT_NAME,
g_define_type_id,
"flickr",
0));
typedef struct _PhotosFlickrItemSyncData PhotosFlickrItemSyncData;
struct _PhotosFlickrItemSyncData
{
GError **error;
GMainLoop *loop;
gboolean op_res;
};
static gchar *
photos_flickr_item_create_filename_fallback (PhotosBaseItem *item)
{
g_autoptr (GFile) file = NULL;
const gchar *uri;
gchar *ret_val;
uri = photos_base_item_get_uri (item);
file = g_file_new_for_uri (uri);
ret_val = g_file_get_basename (file);
return ret_val;
}
static gchar *
photos_flickr_item_create_name_fallback (PhotosBaseItem *item)
{
PhotosFlickrItem *self = PHOTOS_FLICKR_ITEM (item);
g_autoptr (GDateTime) date_modified = NULL;
const gchar *provider_name;
g_autofree gchar *date_modified_str = NULL;
gchar *ret_val;
gint64 mtime;
provider_name = photos_utils_get_provider_name (self->src_mngr, item);
mtime = photos_base_item_get_mtime (item);
date_modified = g_date_time_new_from_unix_local (mtime);
date_modified_str = g_date_time_format (date_modified, "%x");
/* Translators: this is the fallback title in the form
* "Facebook — 2nd January 2013".
*/
ret_val = g_strdup_printf (_("%s — %s"), provider_name, date_modified_str);
return ret_val;
}
static GrlOperationOptions *
photos_flickr_item_get_grl_options (GrlSource *source)
{
GrlCaps *caps;
GrlOperationOptions *options;
caps = grl_source_get_caps (source, GRL_OP_RESOLVE);
options = grl_operation_options_new (caps);
return options;
}
static void
photos_flickr_item_source_resolve (GrlSource *source,
guint operation_id,
GrlMedia *media,
gpointer user_data,
const GError *error)
{
PhotosFlickrItemSyncData *data = (PhotosFlickrItemSyncData *) user_data;
if (error != NULL)
{
if (data->error != NULL)
*(data->error) = g_error_copy (error);
data->op_res = FALSE;
}
else
data->op_res = TRUE;
g_main_loop_quit (data->loop);
}
static gboolean
photos_flickr_item_create_thumbnail (PhotosBaseItem *item, GCancellable *cancellable, GError **error)
{
PhotosFlickrItemSyncData data;
g_autoptr (GFile) local_file = NULL;
g_autoptr (GFile) remote_file = NULL;
g_autoptr (GList) keys = NULL;
g_autoptr (GMainContext) context = NULL;
g_autoptr (GrlMedia) media = NULL;
g_autoptr (GrlOperationOptions) options = NULL;
GrlRegistry *registry;
GrlSource *source;
gboolean ret_val = FALSE;
const gchar *const flickr_prefix = "flickr:";
const gchar *const resource_prefix = "gd:goa-account:";
const gchar *flickr_id;
const gchar *goa_id;
const gchar *identifier;
const gchar *resource_urn;
const gchar *thumbnail_uri;
const gchar *uri;
g_autofree gchar *grilo_id = NULL;
g_autofree gchar *local_dir = NULL;
g_autofree gchar *local_path = NULL;
gint64 height;
gint64 width;
gsize prefix_len;
data.error = error;
data.loop = NULL;
prefix_len = strlen (flickr_prefix);
identifier = photos_base_item_get_identifier (item);
if (strlen (identifier) <= prefix_len || !g_str_has_prefix (identifier, flickr_prefix))
{
g_set_error (error,
PHOTOS_ERROR,
0,
"Invalid nao:identifier for Flickr item %s",
identifier);
goto out;
}
flickr_id = identifier + prefix_len;
prefix_len = strlen (resource_prefix);
resource_urn = photos_base_item_get_resource_urn (item);
if (strlen (resource_urn) <= prefix_len || !g_str_has_prefix (resource_urn, resource_prefix))
{
g_set_error (error,
PHOTOS_ERROR,
0,
"Invalid nie:dataSource for Flickr item %s",
resource_urn);
goto out;
}
goa_id = resource_urn + prefix_len;
grilo_id = g_strdup_printf ("grl-flickr-%s", goa_id);
registry = grl_registry_get_default ();
source = grl_registry_lookup_source (registry, grilo_id);
if (source == NULL)
{
g_set_error (error,
PHOTOS_ERROR,
0,
"Failed to find a GrlSource for %s",
grilo_id);
goto out;
}
media = grl_media_new ();
grl_media_set_id (media, flickr_id);
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_THUMBNAIL, GRL_METADATA_KEY_INVALID);
options = photos_flickr_item_get_grl_options (source);
context = g_main_context_new ();
g_main_context_push_thread_default (context);
data.loop = g_main_loop_new (context, FALSE);
grl_source_resolve (source, media, keys, options, photos_flickr_item_source_resolve, &data);
g_main_loop_run (data.loop);
g_main_context_pop_thread_default (context);
if (!data.op_res)
goto out;
thumbnail_uri = grl_media_get_thumbnail (media);
remote_file = g_file_new_for_uri (thumbnail_uri);
local_path = photos_base_item_create_thumbnail_path (item);
local_file = g_file_new_for_path (local_path);
local_dir = g_path_get_dirname (local_path);
g_mkdir_with_parents (local_dir, 0700);
uri = photos_base_item_get_uri (item);
height = photos_base_item_get_height (item);
width = photos_base_item_get_width (item);
photos_debug (PHOTOS_DEBUG_NETWORK, "Downloading %s from Flickr to %s", thumbnail_uri, local_path);
if (!photos_utils_file_copy_as_thumbnail (remote_file,
local_file,
uri,
height,
width,
cancellable,
error))
goto out;
ret_val = TRUE;
out:
if (data.loop != NULL)
g_main_loop_unref (data.loop);
return ret_val;
}
static GFile *
photos_flickr_item_download (PhotosBaseItem *item, GCancellable *cancellable, GError **error)
{
GFile *ret_val = NULL;
g_autoptr (GFile) local_file = NULL;
g_autoptr (GFile) remote_file = NULL;
const gchar *cache_dir;
const gchar *local_filename;
const gchar *uri;
g_autofree gchar *local_dir = NULL;
g_autofree gchar *local_path = NULL;
uri = photos_base_item_get_uri (item);
remote_file = g_file_new_for_uri (uri);
cache_dir = g_get_user_cache_dir ();
local_dir = g_build_filename (cache_dir, PACKAGE_TARNAME, "flickr", NULL);
g_mkdir_with_parents (local_dir, 0700);
local_filename = photos_base_item_get_filename (item);
local_path = g_build_filename (local_dir, local_filename, NULL);
local_file = g_file_new_for_path (local_path);
if (!g_file_test (local_path, G_FILE_TEST_EXISTS))
{
photos_debug (PHOTOS_DEBUG_NETWORK, "Downloading %s from Flickr to %s", uri, local_path);
if (!g_file_copy (remote_file,
local_file,
G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE,
cancellable,
NULL,
NULL,
error))
{
g_file_delete (local_file, NULL, NULL);
goto out;
}
}
ret_val = g_object_ref (local_file);
out:
return ret_val;
}
static GtkWidget *
photos_flickr_item_get_source_widget (PhotosBaseItem *item)
{
PhotosFlickrItem *self = PHOTOS_FLICKR_ITEM (item);
GtkWidget *source_widget;
const gchar *name;
name = photos_utils_get_provider_name (self->src_mngr, item);
source_widget = gtk_link_button_new_with_label ("https://www.flickr.com/", name);
gtk_widget_set_halign (source_widget, GTK_ALIGN_START);
return source_widget;
}
static void
photos_flickr_item_open (PhotosBaseItem *item, GtkWindow *parent, guint32 timestamp)
{
PhotosFlickrItem *self = PHOTOS_FLICKR_ITEM (item);
GoaAccount *account;
GoaObject *object;
PhotosSource *source;
const gchar *identifier;
const gchar *identity;
const gchar *resource_urn;
g_autofree gchar *flickr_uri = NULL;
identifier = photos_base_item_get_identifier (item) + strlen ("flickr:");
resource_urn = photos_base_item_get_resource_urn (item);
source = PHOTOS_SOURCE (photos_base_manager_get_object_by_id (self->src_mngr, resource_urn));
object = photos_source_get_goa_object (source);
account = goa_object_peek_account (object);
identity = goa_account_get_identity (account);
flickr_uri = g_strdup_printf ("https://www.flickr.com/photos/%s/%s", identity, identifier);
{
g_autoptr (GError) error = NULL;
if (!gtk_show_uri_on_window (parent, flickr_uri, timestamp, &error))
g_warning ("Unable to show URI %s: %s", flickr_uri, error->message);
}
}
static void
photos_flickr_item_constructed (GObject *object)
{
PhotosFlickrItem *self = PHOTOS_FLICKR_ITEM (object);
const gchar *name;
G_OBJECT_CLASS (photos_flickr_item_parent_class)->constructed (object);
name = photos_utils_get_provider_name (self->src_mngr, PHOTOS_BASE_ITEM (self));
photos_base_item_set_default_app_name (PHOTOS_BASE_ITEM (self), name);
}
static void
photos_flickr_item_dispose (GObject *object)
{
PhotosFlickrItem *self = PHOTOS_FLICKR_ITEM (object);
g_clear_object (&self->src_mngr);
G_OBJECT_CLASS (photos_flickr_item_parent_class)->dispose (object);
}
static void
photos_flickr_item_init (PhotosFlickrItem *self)
{
GApplication *app;
PhotosSearchContextState *state;
app = g_application_get_default ();
state = photos_search_context_get_state (PHOTOS_SEARCH_CONTEXT (app));
self->src_mngr = g_object_ref (state->src_mngr);
}
static void
photos_flickr_item_class_init (PhotosFlickrItemClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
PhotosBaseItemClass *base_item_class = PHOTOS_BASE_ITEM_CLASS (class);
base_item_class->miner_name = "org.gnome.OnlineMiners.Flickr";
base_item_class->miner_object_path = "/org/gnome/OnlineMiners/Flickr";
object_class->constructed = photos_flickr_item_constructed;
object_class->dispose = photos_flickr_item_dispose;
base_item_class->create_filename_fallback = photos_flickr_item_create_filename_fallback;
base_item_class->create_name_fallback = photos_flickr_item_create_name_fallback;
base_item_class->create_thumbnail = photos_flickr_item_create_thumbnail;
base_item_class->download = photos_flickr_item_download;
base_item_class->get_source_widget = photos_flickr_item_get_source_widget;
base_item_class->open = photos_flickr_item_open;
}
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2012 – 2021 Red Hat, 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 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 <http://www.gnu.org/licenses/>.
*/
/* Based on code from:
* + Documents
*/
#ifndef PHOTOS_FLICKR_ITEM_H
#define PHOTOS_FLICKR_ITEM_H
#include "photos-base-item.h"
G_BEGIN_DECLS
#define PHOTOS_TYPE_FLICKR_ITEM (photos_flickr_item_get_type ())
G_DECLARE_FINAL_TYPE (PhotosFlickrItem, photos_flickr_item, PHOTOS, FLICKR_ITEM, PhotosBaseItem);
G_END_DECLS
#endif /* PHOTOS_LOCAL_ITEM_H */
......@@ -25,7 +25,6 @@
#include <string.h>
#include <dazzle.h>
#include <gio/gio.h>
#include <glib.h>
#include <glib/gi18n.h>
......@@ -86,8 +85,6 @@ static void photos_item_manager_list_model_iface_init (GListModelInterface *ifac
G_DEFINE_TYPE_WITH_CODE (PhotosItemManager, photos_item_manager, PHOTOS_TYPE_BASE_MANAGER,
G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL, photos_item_manager_list_model_iface_init));
DZL_DEFINE_COUNTER (instances, "PhotosItemManager", "Instances", "Number of PhotosItemManager instances")
typedef struct _PhotosItemManagerHiddenItem PhotosItemManagerHiddenItem;
......@@ -1075,8 +1072,6 @@ photos_item_manager_finalize (GObject *object)
g_free (self->constrain_additions);
G_OBJECT_CLASS (photos_item_manager_parent_class)->finalize (object);
DZL_COUNTER_DEC (instances);
}
......@@ -1086,8 +1081,6 @@ photos_item_manager_init (PhotosItemManager *self)
GEnumClass *window_mode_class; /* TODO: use g_autoptr */
guint i;
DZL_COUNTER_INC (instances);
self->collections = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
self->hidden_items = g_hash_table_new_full (g_str_hash,
g_str_equal,
......
......@@ -23,28 +23,15 @@
#include "config.h"
#include <dazzle.h>
#include <glib.h>
#include "photos-application.h"
#include "photos-debug.h"
#include "photos-remote-display-manager.h"
static void
photos_main_counter_arena_foreach (DzlCounter *counter, gpointer user_data)
{
gint64 count;
count = dzl_counter_get (counter);
photos_debug (PHOTOS_DEBUG_MEMORY, "%s.%s = %" G_GINT64_FORMAT, counter->category, counter->name, count);
}
gint
main (gint argc, gchar *argv[])
{
DzlCounterArena *counter_arena;
gint exit_status;
{
......@@ -61,8 +48,5 @@ main (gint argc, gchar *argv[])
exit_status = g_application_run (app, argc, argv);
}
counter_arena = dzl_counter_arena_get_default ();
dzl_counter_arena_foreach (counter_arena, photos_main_counter_arena_foreach, NULL);
return exit_status;
}
......@@ -23,7 +23,6 @@
#include "config.h"
#include <dazzle.h>
#include <glib.h>
#include <tracker-sparql.h>
......@@ -52,11 +51,6 @@ static guint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (PhotosOffsetController, photos_offset_controller, G_TYPE_OBJECT);
DZL_DEFINE_COUNTER (instances,
"PhotosOffsetController",
"Instances",
"Number of PhotosOffsetController instances")
enum
{
......@@ -160,8 +154,6 @@ static void
photos_offset_controller_finalize (GObject *object)
{
G_OBJECT_CLASS (photos_offset_controller_parent_class)->finalize (object);
DZL_COUNTER_DEC (instances);
}
......@@ -170,8 +162,6 @@ photos_offset_controller_init (PhotosOffsetController *self)
{
PhotosOffsetControllerPrivate *priv;
DZL_COUNTER_INC (instances);
priv = photos_offset_controller_get_instance_private (self);
priv->cancellable = g_cancellable_new ();
......
......@@ -22,7 +22,6 @@
#include <string.h>
#include <dazzle.h>
#include <glib.h>
#include "photos-debug.h"
......@@ -52,8 +51,6 @@ static void photos_pipeline_async_initable_iface_init (GAsyncInitableIface *ifac
G_DEFINE_TYPE_EXTENDED (PhotosPipeline, photos_pipeline, G_TYPE_OBJECT, 0,
G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_INITABLE, photos_pipeline_async_initable_iface_init));
DZL_DEFINE_COUNTER (instances, "PhotosPipeline", "Instances", "Number of PhotosPipeline instances")
static const gchar *OPERATIONS[] =
{
......@@ -294,8 +291,6 @@ photos_pipeline_finalize (GObject *object)
g_free (self->snapshot);
G_OBJECT_CLASS (photos_pipeline_parent_class)->finalize (object);
DZL_COUNTER_DEC (instances);
}
......@@ -329,8 +324,6 @@ photos_pipeline_set_property (GObject *object, guint prop_id, const GValue *valu
static void
photos_pipeline_init (PhotosPipeline *self)
{
DZL_COUNTER_INC (instances);
self->hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
self->graph = gegl_node_new ();
}
......