Commit graph

13 commits

Author SHA1 Message Date
Robert Ancell
378e837a06 background: Use G_DEFINE_TYPE 2017-09-25 14:16:09 -04: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
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
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
a2872ff123 background: Remove empty finalize functions
They were just chaining up.

https://bugzilla.gnome.org/show_bug.cgi?id=707602
2013-09-09 16:24:56 +02:00
Bastien Nocera
00d8f80586 background: Use g_clear_* helpers when possible
https://bugzilla.gnome.org/show_bug.cgi?id=707602
2013-09-09 16:24:37 +02: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
Bastien Nocera
db0b5b1195 background: Use objects for CcBackgroundItem storage
So that we don't need to unref the items in the list store by hand.
2011-02-14 19:11:20 +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
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
Thomas Wood
764f69e852 background: make sure the GnomeWPItems are freed.
Free the GnomeWPItems in the source liststore when the source is destroyed.
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