Commit graph

31 commits

Author SHA1 Message Date
Robert Ancell
0baacee873 background: Use g_auto for variables
https://bugzilla.gnome.org/show_bug.cgi?id=788155
2018-01-26 16:22:23 +13:00
trey
bb3ff84929 background: Add black background color
https://bugzilla.gnome.org/show_bug.cgi?id=778648
2018-01-26 00:35:19 -02:00
Robert Ancell
378e837a06 background: Use G_DEFINE_TYPE 2017-09-25 14:16:09 -04:00
Debarshi Ray
041671e485 background: Fix crash when adding the second color
https://bugzilla.gnome.org/show_bug.cgi?id=689351
2014-11-11 13:52:45 +01:00
Debarshi Ray
fabc31b447 background: Clean up uses of GIcon
Now that we are compositing our own emblems, there is no need to use
GIcon. We can directly use GdkPixbufs everywhere.

https://bugzilla.gnome.org/show_bug.cgi?id=732375
2014-08-12 23:48:46 +02:00
Bastien Nocera
ebbda7a9e3 background: Remember added colours
https://bugzilla.gnome.org/show_bug.cgi?id=689351
2014-07-18 18:28:36 +02:00
Bastien Nocera
8115ba4600 background: Allow dropping colours as well
https://bugzilla.gnome.org/show_bug.cgi?id=689351
2014-07-18 18:28:36 +02:00
Debarshi Ray
7f606870a3 background: Composite the emblems ourselves
We were assuming that setting stock-size would affect the emblems in
GEmblemedIcons, but not the icons themselves. This is a bit weird.
GtkCellRendererPixbuf:gicon is meant to work with
GtkCellRendererPixbuf:stock-size, and this was only working so far
because GTK_ICON_LOOKUP_FORCE_SIZE was not being used when loading
the icon.

Let's composite the emblems ourselves so that we don't have to depend
on this quirky interpretation of stock-size.

Unfortunately, we can not directly use the pixbufs because they are
unaware of the scale factor and GTK+ will scale them on HiDpi
displays. Since our pixbufs already have enough pixels to work well
with such devices, scaling them further will lead to giant, fuzzy
thumbnails. Hence, we use GtkCellRendererPixbuf:surface with the
scale factor codified in it.

https://bugzilla.gnome.org/show_bug.cgi?id=732375
2014-07-16 17:42:18 +02:00
Bastien Nocera
0759090c72 background: Fix compilation warning 2014-06-25 12:46:43 +02:00
Debarshi Ray
a3247e73a4 background: Use higher resolution thumbnails on HiDpi displays
https://bugzilla.gnome.org/show_bug.cgi?id=731713
2014-06-17 18:50:28 +02:00
Debarshi Ray
b950a69f3b background: Rearrange the GObject boilerplate
... so that it is possible to override virtual functions and change
the order of the object creation and destruction process without having
to write a bunch of prototypes. Having the class_init below the others
helps us do that.

https://bugzilla.gnome.org/show_bug.cgi?id=731713
2014-06-17 18:50:27 +02:00
Bastien Nocera
2c9961a4a1 background: Remove black colour from choices
A completely black background will make it impossible to see
whether there is one more workspace in gnome-shell, and as we
do not want to design gnome-shell around the possibility of
a solid black coloured background, remove black from the options.

https://bugzilla.gnome.org/show_bug.cgi?id=649426
2014-04-14 11:20:27 +02:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
3942035180 background: Fix memory leak in the picture sources
The list store was taking a reference to the background item,
so we need to unref it on our side to avoid leaking it.

https://bugzilla.gnome.org/show_bug.cgi?id=709243
2013-10-02 18:21:18 +02:00
Jakub Steiner
f49261bb8d background: use a lighter texture for solid colors.
https://bugzilla.gnome.org/show_bug.cgi?id=682612
2012-09-28 01:51:22 +02:00
Jakub Steiner
dbff39026b background: Use a varied color palette
The original palette for color selection was a bit flat.
The new selection includes 9 "fun" colors that are highly
saturated and people would be initialy drawn to select, as well
as 6 colors that are more appropriate wallpapers and are good to
use for extended periods of time.

https://bugzilla.gnome.org/show_bug.cgi?id=682556
2012-09-05 18:00:41 +01: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
Matthias Clasen
4838efab11 Background: Improve a11y of wallpaper list
Add an invisible text cell renderer to have the text spoken
by orca.
2011-05-16 00:12:44 -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
8be746af8d background: Add arrows for the gradients 2011-02-14 19:48: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
cb2a53141d background: Set the flags for the colors source 2011-02-11 03:49:23 +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
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
Tomas Bzatek
55a02383f2 background: Last bits of new gnome_bg API porting
https://bugzilla.gnome.org/show_bug.cgi?id=625899
2010-11-08 13:48:16 +01: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