summaryrefslogtreecommitdiff
path: root/endless/eosattribution.c
Commit message (Collapse)AuthorAge
* attribution: Allow long comments to wrapPhilip Chimento2017-06-12
| | | | | | | We hardcode a wrap width of 600 based on the dialog's default width of 700. https://phabricator.endlessm.com/T17540
* Update the error message on missing resource URIEmmanuele Bassi2016-07-21
| | | | Reinstate the element number in the critical error message.
* eosattribution: Allow showing a thumb_uri in the creditsJasper St. Pierre2016-07-14
| | | | | | | | | | This is the replacement for resource_path, and is a generic way of showing an image to provide attribution information for. This will be used to pull in ekn:// URIs for the credits dialog in subscriptions apps. https://phabricator.endlessm.com/T12435
* Localization of license name is done by APIFernando Farfan2015-08-28
| | | | | | | The localization of the license display name is done by the API directly, so the consuming methods should not do it again. [endlessm/eos-sdk#3532]
* Add API to serve CC license local filesFernando Farfan2015-06-05
| | | | | | | | | | Added a new API to serve locally-stored copies of Creative Commons' license files, for a specified license level. This method uses the user's locale to serve the appropriate version of the file. (Philip & Fernando) [endlessm/eos-sdk#3111]
* Add more license typesPhilip Chimento2015-05-06
| | | | | | | These licenses are used in the new batch of image attributions coming from eos-knowledge-apps. [endlessm/eos-sdk#3052]
* Remove unused enumPhilip Chimento2015-05-06
| | | | [endlessm/eos-sdk#3052]
* Escape strings used as Pango markupPhilip Chimento2015-05-06
| | | | | | | | Any strings read from external sources that are used as Pango markup should be escaped before using. Also, add translator comments indicating when a string is Pango markup. [endlessm/eos-sdk#3052]
* EosAttribution implements GInitablePhilip Chimento2015-03-25
| | | | | | | | Since the first thing we do is load the attribution information from the file and the object is useless if that fails, then we may as well make the file a construct property and implement GInitable. [endlessm/eos-sdk#2934]
* Initial implementation of image creditsPhilip Chimento2015-03-25
This is a rough implementation of an "About"-like dialog for image attribution in SDK applications. You can press the 'secret' hotkey Shift+Ctrl+A to get a dialog with thumbnails and attribution information for the images in the app's GResource. Clicking on the thumbnail opens the image's original URI in the browser, if known. Clicking on the text opens the image's license text in the browser, if known. For this, you need to add a JSON file to the app's GResource and pass its GResource path to the EosApplication:image-attribution-file property. The format of this JSON file is described in the documentation for EosApplication. The dialog uses GtkTreeView because we didn't have GtkListBox when I started implementing it over a year ago. This places some limitations on the UI; the links behave weirdly and the mouse pointer doesn't change to a hand when hovering over the links. [endlessm/eos-sdk#2934]