Commit graph

24 commits

Author SHA1 Message Date
Michael Wood
09baf812ea background: Offload the sorting of the initial list of files
Sorting after the image scale for each image causes the list to change
as you're viewing it depending on the size of the image.
This can be quite jarring visually.

https://bugzilla.gnome.org/show_bug.cgi?id=691800
2013-03-01 11:13:00 +00:00
Bastien Nocera
3840ef6539 background: Fix compile-time warning with format 2013-01-31 17:02:11 +01:00
Michael Wood
c3446cccdc background: Sort Pictures in order of most recently modified
In the picture browser you see the most recently modified pictures
first.

https://bugzilla.gnome.org/show_bug.cgi?id=691800
2013-01-31 11:46:07 +01:00
Cosimo Cecchi
7cef6dc582 background: don't use the GnomeBG thumbnails for the preview area
Instead, use gnome_bg_draw(), which renders the preview directly at the
desired size.

https://bugzilla.gnome.org/show_bug.cgi?id=646180
2011-03-30 10:40:27 -04:00
Alexander Larsson
4e06cd6236 Fix includes for gdesktop-enums.h
The file is in $incdir/gsettings-desktop-schemas/gdesktop-enums.h,
and pkg-config returns -I$incdir/gsettings-desktop-schemas, so the
right way is to #include <gdesktop-enums.h> which is what other modules
do.

https://bugzilla.gnome.org/show_bug.cgi?id=642369
2011-02-17 20:59:55 +01:00
Bastien Nocera
18a76d2dff background: Remove unused GConf include 2011-02-16 01:24:49 +00:00
Bastien Nocera
e4efd61cfe background: Fix comparisons of gradients 2011-02-14 19:49:07 +00:00
Bastien Nocera
558d6752f9 background: Add/Remove features for panel
Remove unused "backgrounds-liststore" object from .ui file, and
add remove button.

Make remove button sensitive for files that were copied to the cache,
and implement remove itself.

Remember needs_download when copying CcBackgroundItem objects.

Make "Add" button unsensitive in chooser when background was
already added to the list, to avoid duplicates.

Ellipsise background label.
2011-02-14 19:11:20 +00:00
Bastien Nocera
f77d23f35a background: Add "needs-download" property
Rather than relying on source-url being NULL, which would mean
we can't then save it.
2011-02-14 19:11:20 +00:00
Bastien Nocera
c32b0da4e4 background: Only accept URIs when creating items 2011-02-14 13:26:39 +00:00
Bastien Nocera
2a146db805 background: Handle no-flags from saved config 2011-02-14 09:44:05 +00:00
Bastien Nocera
5517949b4e background: Treat empty URI as NULL
So that comparisons are easier.
2011-02-14 09:44:05 +00:00
Bastien Nocera
758242bb8e background: Add function to compare 2 bg items 2011-02-14 09:44:05 +00:00
Bastien Nocera
7448e7698e background: Add more info to _dump() function
Also print out the placement and shading of the background.
2011-02-14 09:44:05 +00:00
Bastien Nocera
c016e5cea2 background: Remove the "changed" signal
It wasn't used anyway.
2011-02-12 03:13:50 +00:00
Bastien Nocera
2e8faa10f0 background: Don't warn when trying to load a gradient 2011-02-11 18:52:38 +00:00
Bastien Nocera
2735c788b4 background: Use URIs everywhere internally
Now we'd just need gnome-bg to make the jump.

This also fixes unique IDs for the wallpapers source, as
multiple backgrounds can be defined in a single XML file.
2011-02-11 18:11:11 +00:00
Bastien Nocera
85b2cad706 background: Add function to copy a background item 2011-02-11 12:48:28 +00:00
Bastien Nocera
4bd51634a0 background: Make update_size() work in _load()
If we never got an initial frame, it wouldn't work too well.
2011-02-11 12:38:46 +00:00
Bastien Nocera
f2cfedd98b background: Add function for debugging
Prints out the contents of a CcBackgroundItem in details.
2011-02-11 03:35:50 +00:00
Bastien Nocera
73798da688 background: Remove some dead code 2011-02-11 03:19:09 +00:00
Bastien Nocera
ed425ecf9d background: Better guards for public functions 2011-02-11 03:18:22 +00:00
Bastien Nocera
ca14846ef9 background: Major rework of the CcBackgroundItem code
It now is a full GObject, will be able to track the original
XML file for a wallpaper, as well as which values are set in it.

This will allow us to restore wallpapers properly, and only offer
editing options when those aren't already hard-coded inside the
item.
2011-02-10 20:35:02 +00:00
Bastien Nocera
9a209fa181 background: Rename gnome-wp-item to cc-background-item 2011-02-10 20:35:02 +00:00
Renamed from panels/background/gnome-wp-item.c (Browse further)