Commit graph

20 commits

Author SHA1 Message Date
Bastien Nocera
a1dd22ea17 background: Add/Remove features in pictures source
Remember added files, so they cannot be added twice to the pictures
store (using UUID of the URI as key).

Implement removing items from the list.

Fix memory leaks.
2011-02-14 19:11:20 +00:00
Bastien Nocera
e6cb9f5b12 background: Add ability to add a single file
To the pictures backend.
2011-02-14 13:26:39 +00:00
Bastien Nocera
2866a70f6a background: Don't show an error if no cache dir
We don't want to see errors if the directory doesn't exist.
2011-02-14 13:26:39 +00:00
Bastien Nocera
9ac7a0aa32 background: Remove code for impossible situation
We can never have placement be "none" as we create new items
with "scaled" by default. So just set "zoom" all the time.
2011-02-14 13:26:39 +00:00
Bastien Nocera
87f05ef0ed background: Also look for items in ~/.cache
We'll be saving items in ~/.cache/gnome-control-center/backgrounds
for the Flickr and manual additions of items, so look there as well.
2011-02-14 13:26:39 +00:00
Bastien Nocera
329aabf0b1 background: Set the shading for pictures 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
555bf47f51 background: Load bg data when selected
And only when selected. There's no point in loading it straight
away, as we have more than enough metadata to display it in the
icon view, and we'll need to load up the data when we display
it anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=641414
2011-02-11 19:01:20 +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
9e3903a828 background: Set the flags for the pictures source 2011-02-11 03:49:49 +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
Bastien Nocera
391cb33829 background: Avoid empty screens
When switching from a colour to a picture.
2010-12-16 18:37:59 +00:00
Bastien Nocera
44fbef70a2 background: Load ~/Pictures asynchronously
Using the new gdk-pixbuf helper functions in 2.23.0.

https://bugzilla.gnome.org/show_bug.cgi?id=635601
2010-12-13 16:19:58 +00:00
Bastien Nocera
9580be8d17 background: Avoid re-querying the GFileInfo
If we already have it from enumerating the Pictures directory. Saves
us from doing sync queries in certain cases.
2010-12-13 15:30:22 +00:00
Andreas Proschofsky
32f59e6df5 all: Fix build for latest gnome-desktop changes
https://bugzilla.gnome.org/show_bug.cgi?id=634859
2010-11-14 22:12:59 +00:00
Thomas Wood
ce8cd97754 background: implement new UI design from Jakub Steiner 2010-08-25 19:18:05 +01:00
Thomas Wood
2b56a5ea0f background: fix various leaks
Fix various leaks found by valgrind.
2010-08-12 15:12:04 +01:00
Thomas Wood
abdb42e9e2 background: derive background sources from a common source object
Add the BgSource object to define the common aspects of background sources
and make sure the existing sources inherit from it.
2010-08-10 17:01:15 +01:00
Thomas Wood
e721f417ad Add initial implementation of "background" panel
The background settings panel provides a way for users to change the
desktop background by selecting an image and/or colour.
2010-08-10 15:26:07 +01:00