summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimageurl.c
Commit message (Collapse)AuthorAgeFilesLines
* cssimage: Report filename of file failing to loadBenjamin Otte2013-09-181-1/+4
|
* css: Add a scale argument to css-value compute vfuncAlexander Larsson2013-07-031-0/+1
| | | | | | | | We need to be able to compute different GtkCssImage values depending on the scale, and we need this at compute time so that we don't need to read any images other than the scale in used (to e.g. calculate the image size). GtkStyleProviderPrivate is shared for all style contexts, so its not right.
* cssimage: Only load image data when neededBenjamin Otte2013-02-021-37/+49
| | | | | | | | Saves ~6MB of memory per application in the Adwaita I am using - at least until the app starts using all the images in the theme, because the code doesn't discard images yet once they were loaded. https://bugzilla.gnome.org/show_bug.cgi?id=692934
* cssimage: Add a getterBenjamin Otte2013-02-021-6/+12
| | | | | | This will be needed in the next commit. https://bugzilla.gnome.org/show_bug.cgi?id=692934
* cssimage: Return the loaded image from compute()Benjamin Otte2013-02-021-0/+14
| | | | | | | This way, we don't keep the indirection when actually rendering the image. https://bugzilla.gnome.org/show_bug.cgi?id=692934
* css: Split out GtkCssImageSurfaceBenjamin Otte2013-02-021-52/+17
| | | | | | | | | This is essentially a GtkCssImage for a cairo_surface_t and is a pretty much straight up copy of GtkCssImageUrl. But we want to implement lazy loading and animations, so GtkCssImageUrl is going to gain new features... https://bugzilla.gnome.org/show_bug.cgi?id=692934
* cssimage: Store the URI we're loaded fromBenjamin Otte2013-02-021-7/+7
| | | | | | | | | | | | | I'd like to use it when printing the value, but I haven't found a way to do that sanely yet, as I'd need to be able to print relative paths for make check to work (otherwise the srcdir would blow things up). And we use a GString to output to, so there's no way to attach a base dir to that. If anyone has an idea how to achieve that, poke me. Having the real filename in debug prints sounds like a very good idea to me. https://bugzilla.gnome.org/show_bug.cgi?id=692934
* cssimage: No need to pass base file anymoreBenjamin Otte2012-05-111-2/+1
| | | | The file is now part of the GtkCssParser
* cssparser: Change APIs that work with filesBenjamin Otte2012-05-111-1/+1
| | | | | Now that we keep track of the parser's file, we don't require it to be passed anymore.
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* Fix leak when parsing image urlsAlexander Larsson2012-02-061-1/+1
|
* Remove accidental leftover spewAlexander Larsson2012-02-031-1/+0
|
* Special case resource pixbuf files loadingAlexander Larsson2012-02-031-8/+26
| | | | | This means we can share the pixbuf data when using GdkPixdata images in the resource.
* Ensure we can load images via resource:// uris from CSSAlexander Larsson2012-01-161-4/+10
|
* Destroy cairo context after painting css image urlPaolo Borelli2012-01-141-0/+1
|
* parser: remove a duplicate copy of gtk_css_parse_url()Cosimo Cecchi2012-01-131-57/+1
| | | | Move the function to gtkcssparser.c and use it in both places.
* css: Add image implementation for urlsBenjamin Otte2012-01-091-0/+223