summaryrefslogtreecommitdiff
path: root/panels/background/cc-background-chooser-dialog.c
Commit message (Collapse)AuthorAgeFilesLines
* background: Use g_auto for variableswip/rancell/background-g-autoRobert Ancell2018-01-081-14/+9
|
* background: Use G_DEFINE_TYPERobert Ancell2017-09-251-62/+52
|
* background: Improve background chooser dialogGeorges Basile Stavracas Neto2017-08-161-9/+2
| | | | | | | | | The background chooser dialog behavior was modeled against a fixed-size, unmaximizable window, and makes some assumptions that doesn't work well on the new layout. Fix that by always setting 3 columns, and adjusting the dialog height according to the transient parent.
* background: Ensure that the chooser is tall enough with newer GTK+Debarshi Ray2016-03-091-2/+2
| | | | | | | | | | | | | We should be pairing gtk_window_get_size with gtk_window_set_default_size to avoid inconsistencies between the size reading and setting code. eg., in recent GTK+ versions, gtk_window_get_size and gtk_widget_set_size_request differ in their interpretation of the CSD chrome. However, gtk_window_set_default_size didn't work with non-resizable GtkWindows, until now. https://bugzilla.gnome.org/show_bug.cgi?id=762548
* background: Give mnemonic to labelled widgetsJiro Matsuzawa2016-01-181-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=736606
* background: Fix deprecated API usageRui Matos2014-12-051-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=740986
* background: Remove superflous frame from chooser dialogLapo Calamandrei2014-11-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=739821
* background: Use a stack with three views for the chooser dialogDebarshi Ray2014-09-121-179/+167
| | | | | | | | | | Instead of using a GtkGrid and GtkBox to mimic what GtkStack and GtkStackSwitcher already does for us, let's just use the latter. As a result each source now has its separate GtkIconView. The pictures source has a nested GtkStack to switch between the 'empty' box and the view, which should simplify size-related issues. https://bugzilla.gnome.org/show_bug.cgi?id=736366
* background: Remove a useless horizontal size requestDebarshi Ray2014-09-101-1/+1
| | | | | | | | | | | | | | | There are three cases which affect our size calculation: - When the dialog is without a parent in the test application. - When the dialog is maximized on small screens. - When the dialog is used with an unmaximized parent. The width of the chooser is much more than half the width of the parent in the third case. So there is no point in doing it. The width that we set for the grid in the content area is actually what is useful. https://bugzilla.gnome.org/show_bug.cgi?id=736366
* background: Make switcher button as tall as other buttonsBastien Nocera2014-08-151-0/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=734803
* background: Allow dropping colours as wellBastien Nocera2014-07-181-6/+74
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=689351
* background: Re-add drag'n'drop supportBastien Nocera2014-07-181-0/+96
| | | | | | Inside the chooser dialogue itself. https://bugzilla.gnome.org/show_bug.cgi?id=689351
* background: Prevent monitor_pictures_model() running multiple timesBastien Nocera2014-07-181-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=689351
* background: Composite the emblems ourselvesDebarshi Ray2014-07-161-7/+1
| | | | | | | | | | | | | | | | | | | | | 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
* background: Remove unnecessary initializationDebarshi Ray2014-06-171-3/+0
| | | | | | | 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
* background: Use higher resolution thumbnails on HiDpi displaysDebarshi Ray2014-06-171-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731713
* background: Unbreak the test programDebarshi Ray2014-06-161-2/+6
| | | | | | | | The dialog in the test program does not have a parent window. Fallout from 130dd418b83a98c2f42343ef56862488daf2509c https://bugzilla.gnome.org/show_bug.cgi?id=692495
* background: Use header bar in the chooser dialogYosef Or Boczko2014-04-281-2/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724299
* background: Make whole dialog visible on small screensBastien Nocera2014-04-141-3/+8
| | | | | | | | | | | | | 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
* background: Remove uses of libsocialweb and BgFlickrSourceDebarshi Ray2014-02-131-25/+0
| | | | | | | BgFlickrSource will be merged with BgPicturesSource and rewritten using Grilo at the same time. https://bugzilla.gnome.org/show_bug.cgi?id=707569
* background: Use GLib API to convert absolute filename to URIDebarshi Ray2014-02-131-1/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709771
* background: Guard against XDG_PICTURES_DIR not being definedDebarshi Ray2014-02-131-2/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709771
* Updated FSF's addressDaniel Mustieles2014-01-291-3/+1
|
* background: The chooser should have exactly 3 columnsDebarshi Ray2014-01-081-0/+1
| | | | | | | 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
* background: Remove unused variableDebarshi Ray2013-10-041-1/+0
| | | | | | Fallout from 79ec684fa4912a1e5bff17ce11b036cef4a298aa https://bugzilla.gnome.org/show_bug.cgi?id=708943
* background: Set the size request only on the parentDebarshi Ray2013-10-041-8/+1
| | | | | | | | | | | | 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
* background: Use the same method to set the initial view and toggleDebarshi Ray2013-10-031-3/+1
| | | | | | This makes it simpler for us to track the busy state of the sources. https://bugzilla.gnome.org/show_bug.cgi?id=708943
* background: Fix leak of the Flickr sourceBastien Nocera2013-10-021-0/+3
| | | | | | | The Flickr source was never disposed of when destroying the selection dialog. https://bugzilla.gnome.org/show_bug.cgi?id=709243
* background: Remove empty finalize functionsBastien Nocera2013-09-091-8/+0
| | | | | | They were just chaining up. https://bugzilla.gnome.org/show_bug.cgi?id=707602
* background: drop GtkStockYosef Or Boczko2013-07-191-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=704178
* background: show explanation of why pictures source might be emptyJoshua Lock2013-06-041-12/+170
| | | | | | | 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
* background: Fix not having 3 columns in high contrastBastien Nocera2012-11-141-1/+1
| | | | | | Increase the width slightly to 860 from 850. https://bugzilla.gnome.org/show_bug.cgi?id=683499
* Set pixbuf renderer stock size to 32 so emblems render at 16pxWilliam Jon McCann2012-09-101-0/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682123
* background: New background panel designWilliam Jon McCann2012-08-171-0/+335
Implement a new design for the wallpaper selection. https://bugzilla.gnome.org/show_bug.cgi?id=676539