Commit graph

60 commits

Author SHA1 Message Date
Bastien Nocera
112edc7cf7 background: Capture the primary monitor
Not monitor 0.

https://bugzilla.gnome.org/show_bug.cgi?id=684985
2012-09-27 20:36:35 +02:00
Rico Tzschichholz
ddf8c56caf background: Add missing include
bg_pictures_source_get_*_path is defined in bg-pictures-source.h
2012-08-22 12:52:29 +02:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
William Jon McCann
4ee558bdc8 background: Update the preview when the settings change
They may be change from outside (eg. Nautilus).

https://bugzilla.gnome.org/show_bug.cgi?id=676539
2012-08-17 17:57:54 -04:00
William Jon McCann
18b3486a06 background: Remove sheen overlay
The metaphor was valid when we used a monitor to display the preview
but now it doesn't work. There is no glass to reflect light. It
distracts from the preview and may look like a defect.

https://bugzilla.gnome.org/show_bug.cgi?id=676539
2012-08-17 17:57:46 -04:00
William Jon McCann
79ec684fa4 background: New background panel design
Implement a new design for the wallpaper selection.

https://bugzilla.gnome.org/show_bug.cgi?id=676539
2012-08-17 17:57:27 -04:00
Jon McCann
46186a5f02 background: Escape wallpaper filename before display
https://bugzilla.gnome.org/show_bug.cgi?id=673015
2012-06-14 18:07:56 +01:00
Florian Müllner
f8637475ba background: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Bastien Nocera
3d79e1174e background: Only show the image types we support
And add image/bmp to those types.

https://bugzilla.gnome.org/show_bug.cgi?id=669960
2012-05-17 18:12:49 +01:00
Ming Han Teh
cdfe63a3b2 background: Added D'n'D support for adding wallpapers.
https://bugzilla.gnome.org/show_bug.cgi?id=655375
2011-10-06 09:47:09 +01:00
Rodrigo Moya
aa850977a5 background: Allow SVG image files as background
https://bugzilla.gnome.org/show_bug.cgi?id=648764
2011-08-30 10:31:23 +02:00
Bastien Nocera
dd1b9d8336 background: Add "swap" button for gradients
https://bugzilla.gnome.org/show_bug.cgi?id=34498
2011-07-14 16:38:22 +01:00
Bastien Nocera
58e4fab6be background: Allow adding multiple images
https://bugzilla.gnome.org/show_bug.cgi?id=647053
2011-04-08 13:41:47 +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
Bastien Nocera
470f0dd13a background: Make icon list smaller on netbooks
The default treeview is quite tall by default, and with the addition
of the shell's toolbar, the titlebar and the GNOME shell panel,
the background panel would be too tall for netbook computers.

This works around the issue by setting a smaller height request
for the icon list when the screen on which the panel will be shown
are no taller than 768 pixels.

https://bugzilla.gnome.org/show_bug.cgi?id=645649
2011-03-26 16:36:59 -04:00
Bastien Nocera
73f9bffb3c background: Use new picture-uri GSettings key
https://bugzilla.gnome.org/show_bug.cgi?id=633983
2011-03-09 14:07:33 +00: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
3ae9e15ebf background: Fix initial state when loading gradients
And fix saving as well, as we were saving from the item,
instead of the current_background, thus losing name, etc.
2011-02-14 19:49:27 +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
4809be2b3f background: Implement 'Add' button 2011-02-14 15:04:55 +00:00
Bastien Nocera
8eace42d8a background: Update preview correctly for custom bgs
When we're creating our new item for custom wallpapers, make
sure that we update the ->current_background, otherwise we'll
still be displaying the previous configuration.
2011-02-14 13:26:40 +00:00
Bastien Nocera
8bca545902 background: Fix errors when saving current wp
As report by Matthias Clasen
2011-02-14 13:26:39 +00:00
Bastien Nocera
78e16e52f4 background: Add first pass at "add" button
With a hard-coded filename for now.
2011-02-14 13:26:39 +00:00
Bastien Nocera
715474fb30 background: Update comment 2011-02-14 13:26:39 +00:00
Bastien Nocera
1933bfdf17 background: Use correct cache directory 2011-02-14 13:26:39 +00:00
Bastien Nocera
575d8d2463 background: Add "add" button
To allow adding arbitrary files to the list.
2011-02-14 13:26:39 +00:00
Bastien Nocera
fbe3926ed3 background: Try our hardest to remember the last bg
Save the current background as XML, and try to load it back up
when starting. If the saved background pretty much matches what we
have in GSettings, then it's the same item, and we try and remember
all the metadata, including the name.

https://bugzilla.gnome.org/show_bug.cgi?id=630417
2011-02-14 09:44:05 +00:00
Bastien Nocera
d3eb413b24 background: Move settings loading
Into a separate function, so that we can extend it.
2011-02-14 09:44:05 +00:00
Bastien Nocera
2e9519a57f background: Remove unneeded include 2011-02-12 03:13:51 +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
7f9f1cabe0 background: Remove debug 2011-02-11 16:16:13 +00:00
Bastien Nocera
6b4f95e9d1 background: Copy to set the new background
Instead of reusing the item from the list store, otherwise we
might be tweaking properties for an item that we shouldn't,
and leaking user preferences into the "static" list store.
2011-02-11 12:48:48 +00:00
Bastien Nocera
9b55bb20e3 background: Load initial state from GSettings
gnome_wp_item_update() used to do that for us.
2011-02-11 12:39:51 +00:00
Bastien Nocera
ba72b7ab18 background: Remove read-only source property
And squash together the code to setup the editing widgets.
2011-02-11 12:24:48 +00:00
Bastien Nocera
15a5849384 background: Use the item flags
When setting a new background. That ensures that we don't lose
existing settings when the background item doesn't provide one
(for example, setting the background colour when setting a picture
item).
2011-02-11 03:51:38 +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
7ca2a8a3e5 background: Use g_settings_delay() properly
g_settings_delay() doesn't work like GConf's changesets. Either
you create a separate GSettings for non-delayed application,
or you call g_settings_apply() any time you want changes applied.
2010-12-16 19:38:31 +00:00
Bastien Nocera
30d878cfd5 background: Try to fix original state 2010-12-16 18:37:59 +00:00
Bastien Nocera
59f84a7088 background: Avoid the size changing when changing preview
The gnome_wp_item_update_size() code was working off old data.
We need to copy the height and width as well if we want it to
match the current background. The next call to _update_size()
will fill in ->size if it wasn't already set.
2010-12-16 18:37:59 +00:00
Bastien Nocera
2365e47228 background: Better handling of colours and gradients
Implement gradients, make sure that selecting one particular
gradient or solid colour doesn't overwrite the previous one.
2010-12-15 16:46:53 +00:00
Bastien Nocera
035126a970 background: Add emblem for slideshow previews
Though for some reason the icon ends up being tiny...
2010-12-14 20:29:33 +00:00
Bastien Nocera
f48054ccf1 background: Show wallpaper size on startup
When available. Remove the "px" from the size label.
2010-12-14 19:24:19 +00:00
Bastien Nocera
39f452afee background: Follow mockups
Add icon to represent slideshows, always show a name for the
currently set background on startup, show whether a background
is a slideshow, and its pixel size if available.
2010-12-14 18:27:11 +00:00
Bastien Nocera
adfe6ef8fc background: Fix broken preview
The style wasn't set properly on startup, and then incorrectly
applied to the preview because the numbering of the items in
the style-liststore doesn't match the GDesktopBackgroundStyle
enum 1-to-1.
2010-12-14 18:27:10 +00:00
William Jon McCann
7ecc6029cc [background] Don't use iter if you didn't get one 2010-11-01 19:07:03 -04:00
Rodrigo Moya
7cc99ddc87 background: Use g_settings_get/_set_enum for background options and shading 2010-10-14 13:30:29 +02:00
Rodrigo Moya
2b5a938d26 background: Port to GSettings 2010-10-14 13:01:31 +02:00
Cosimo Cecchi
6dfc24e3e6 Make flickr background setting not segfault. 2010-10-06 12:31:03 +02:00
William Jon McCann
533b044dc9 A couple more updates use the GTK3 drawing APIs 2010-10-02 17:45:40 -04:00