summaryrefslogtreecommitdiff
path: root/src/job-manager.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-11build: Fix minor compiler warningsTomas Bzatek1-2/+3
2016-04-03gallery-utils: Copy extra files recursivelyTomas Bzatek1-2/+1
This brings support for copying whole directories when specified in album extra files or template supplemental files.
2015-01-25theming: Make custom image size handling fully flexibleTomas Bzatek1-23/+25
This commit brings full flexibility of custom image size definition and usage. When a custom image size is defined, it automatically maps to the album <item> tag arguments. Alternatively, this automatic name matching can be overriden by <size tagname="..."> theme setup tags. This allows us to supply image of different sizes that can be also used in templates. Legacy behaviour of "fullsize" and "preview" image size fallback is retained (though not recommended in new theming setups).
2015-01-04generators: Use single function for all templatesTomas Bzatek1-6/+4
This commit makes use of a common function for all template parsing and page writing. The behaviour is controlled by the "item" argument passed in. This allows us to have a single code that generates code for list of items as well as for a single item. In the future, this can be used for e.g. combining thumbnails and large images on the same page. Other than that this commit also brings several other changes: - further clarification of theming setup XML file - <protected_thumbnail> tag has been moved out of the <album> structure into the <index> structure where it functionally belongs. Only whole albums can be protected and the substitute thumbnail is displayed on index pages. - position marker format has been broken out to a constant - added few more FIXMEs to mark places that will change soon - some template variables have been renamed
2014-09-15theming: Allow themes to use different thumbnail image sizesTomas Bzatek1-2/+2
This change makes thumbnail image sizes more flexible by explicitly stating the particular image size is a thumbnail. And each thumbnail image size can have different squared settings. On the theme side it's now mandatory to specify which thumbnail size to use (if applicable). This allows us to have different thumbnail styles for index and album pages. This commit also removes the <squared_thumbnails> tag from setup.xml file but retains fallback for ver. 1 setup.xml files.
2013-04-22Use new glib threading APITomas Bzatek1-1/+5
The gthread library has been merged in glib and the threading API has changed a little. Since changes are negligible, there's no point of losing support of older glib releases, thus make it conditional.
2012-12-31Add support for password protected albumsTomas Bzatek1-0/+26
This adds support for simple password protected areas (albums and all subalbums) through webserver HTTP authentication. CGG simply generates .htaccess and password files and it's up to the user to set up the rest on server side. No UI changes at this point. Limited to one user per album for the moment.
2011-05-29Introduce new theming systemTomas Bzatek1-83/+95
This extends current templating system to another dimension, bringing the possibility to have multiple themes generated at once. The purpose is to be able to switch between multiple designs, from PC to mobile, classic vs. flat view, slideshow, etc. For the moment, only the classic theme is available. Rules: * for switching between themes, place a link inside your template manually - it's not a cgg concern, only your theming infrastructure * don't forget to define different file names for index and album pages across different themes * it's recommended to keep default theme named as "index.*" to avoid showing directory listing on webserver Notes: * some TODOs will be fixed when we have new theme using these advanced features (e.g. pictures in album pages) * TODO: introduce tag/block conditional system, allow custom user defines for each theme/page * TODO: deprecate <show_go_up>, <show_exif_table> and <border style> in favor of conditionals (these tags belong to theming)
2011-03-03Fix atom feed pathsTomas Bzatek1-1/+2
And convert it to use global path info.
2011-01-23Get thumbnail orientation when really neededTomas Bzatek1-9/+1
No need to store generated data during thread work anymore.
2011-01-23Indentation fixesTomas Bzatek1-4/+2
2011-01-23Use g_build_{filename|path} when possibleTomas Bzatek1-19/+20
This has a nice side effect of not having double slashes in paths anymore.
2011-01-23Consolidate paths in a separate structTomas Bzatek1-28/+28
This will allow us to pass detailed path info to worker methods. Each path info instance is bound to a currently processed album and directory. Possibly move to struct TItems in the future.
2010-12-12items: CleanupTomas Bzatek1-5/+4
2010-10-08Add basic Atom feed writerTomas Bzatek1-2/+2
2009-09-23Make thumbnail orientation independent of source image orientationTomas Bzatek1-4/+4
2009-09-23Track image orientation separately, outside threadingTomas Bzatek1-2/+10
Also fix forgotten two struct members :-o
2009-09-23Optimize job manager index counting, filter out non-processable itemsTomas Bzatek1-34/+33
2009-09-22Track job manager state in a separate listTomas Bzatek1-19/+44
The goal is to get rid of any writes to unlocked objects (album items) during thread work.
2009-09-20Avoid unnecessary lockingTomas Bzatek1-3/+2
2009-05-10Remove #ifdef __DEBUG_ALL__Tomas Bzatek1-3/+0
2009-05-10Consolidate data typesTomas Bzatek1-17/+16
2009-04-25Update modeTomas Bzatek1-36/+60
By doing update, cgg will check the output structure for missing files and re-generate them as necessary. The decision whether an item (file, picture, album) needs to be updated is done by comparing timestamps (mtime specifically). Due to that reason it's important to keep this fact in mind when replacing single image which carries older timestamp than other files. Either don't use the update mode or 'touch' that new file. Changes made to any XML file will result in whole album re-generation (excluding subalbums).
2009-04-11Print statistics in verbose modeTomas Bzatek1-12/+14
2009-04-11User customizable image directoriesTomas Bzatek1-3/+3
2009-04-04Lock album itemsTomas Bzatek1-0/+4
2009-03-28Multithreading supportTomas Bzatek1-0/+362
Also made progress output a little bit nicer default = 1 thread at once, for safety reasons I've encountered critical issues with ImageMagick compiled with OpenMP support. Hope that package maintainers are clever. ShittyMagickWandGenesis(), ShittyMagickWandTerminus() :-)