Commit graph

25 commits

Author SHA1 Message Date
Bastien Nocera
71c76e9688 background: Make switcher button as tall as other buttons
https://bugzilla.gnome.org/show_bug.cgi?id=734803
2014-08-15 16:49:43 +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
Bastien Nocera
ccf7dc70d4 background: Re-add drag'n'drop support
Inside the chooser dialogue itself.

https://bugzilla.gnome.org/show_bug.cgi?id=689351
2014-07-18 18:28:36 +02:00
Bastien Nocera
e1fab88105 background: Prevent monitor_pictures_model() running multiple times
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
Debarshi Ray
9c25c5ce65 background: Remove unnecessary initialization
The entire private struct is initialized to 0 by GObject, so there is
no need to do that again.

https://bugzilla.gnome.org/show_bug.cgi?id=731713
2014-06-17 18:50:28 +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
9ae3c44aa2 background: Unbreak the test program
The dialog in the test program does not have a parent window.

Fallout from 130dd418b8

https://bugzilla.gnome.org/show_bug.cgi?id=692495
2014-06-16 15:24:01 +02:00
Yosef Or Boczko
00b03c5f4e background: Use header bar in the chooser dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:17 +03:00
Bastien Nocera
130dd418b8 background: Make whole dialog visible on small screens
When using a small screen, make sure that the whole of the dialogue
is visible, including the confirmation buttons. This means that the
dialogue will be maximised when on smaller screens (just like its
parent), and that we won't set a number of columns for the icon
view.

We will also stop making the dialogue much bigger than the
Settings window itself.

https://bugzilla.gnome.org/show_bug.cgi?id=692495
2014-04-14 11:33:01 +02:00
Debarshi Ray
6c05a7d176 background: Remove uses of libsocialweb and BgFlickrSource
BgFlickrSource will be merged with BgPicturesSource and rewritten using
Grilo at the same time.

https://bugzilla.gnome.org/show_bug.cgi?id=707569
2014-02-13 14:01:16 +01:00
Debarshi Ray
4a403aa825 background: Use GLib API to convert absolute filename to URI
https://bugzilla.gnome.org/show_bug.cgi?id=709771
2014-02-13 12:38:01 +01:00
Debarshi Ray
8ef67d6be0 background: Guard against XDG_PICTURES_DIR not being defined
https://bugzilla.gnome.org/show_bug.cgi?id=709771
2014-02-13 12:37:58 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Debarshi Ray
85a0016b7d background: The chooser should have exactly 3 columns
The correct way to specify the number of columns is to use
gtk_icon_view_set_columns.

https://bugzilla.gnome.org/show_bug.cgi?id=720652
2014-01-08 16:48:18 +01:00
Debarshi Ray
516e2a624f background: Remove unused variable
Fallout from 79ec684fa4

https://bugzilla.gnome.org/show_bug.cgi?id=708943
2013-10-04 13:40:11 +02:00
Debarshi Ray
7585b836be background: Set the size request only on the parent
Instead of setting the size on each child, set it on the parent grid
because only one of those children are visible at any given point.

We are cheating a bit by ignoring the fact there is a second child
which is always shown -- the button box. This will make the other
children lose some height and the dialog will be smaller. However it is
still too big for smaller screens.

https://bugzilla.gnome.org/show_bug.cgi?id=708943
2013-10-04 13:37:13 +02:00
Debarshi Ray
7a843ae428 background: Use the same method to set the initial view and toggle
This makes it simpler for us to track the busy state of the sources.

https://bugzilla.gnome.org/show_bug.cgi?id=708943
2013-10-03 18:55:22 +02:00
Bastien Nocera
c2413a3c3e background: Fix leak of the Flickr source
The Flickr source was never disposed of when destroying the
selection dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=709243
2013-10-02 18:21:18 +02: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
Yosef Or Boczko
27e12bb7b0 background: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:55:48 +03:00
Joshua Lock
60260e7b65 background: show explanation of why pictures source might be empty
Show a message to the user when the Pictures source is empty, inspired both
in design and widget layout by the EmptyResultsBox from gnome-documents.

https://bugzilla.gnome.org/show_bug.cgi?id=630892
2013-06-04 14:09:36 +01:00
Bastien Nocera
a4cf283937 background: Fix not having 3 columns in high contrast
Increase the width slightly to 860 from 850.

https://bugzilla.gnome.org/show_bug.cgi?id=683499
2012-11-14 23:07:16 +01:00
William Jon McCann
312a5dfe87 Set pixbuf renderer stock size to 32 so emblems render at 16px
https://bugzilla.gnome.org/show_bug.cgi?id=682123
2012-09-10 09:47:48 -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