Georges Basile Stavracas Neto
9e39748d16
background: Introduce BgRecentSource
...
BgRecentSource is a background source implementation that
keeps track of recently added backgrounds.
The backgrounds are copied to $(local data dir)/backgrounds,
which is monitored. When copying files to this folder, the
current time is added as prefix to avoid filename collisions.
2019-05-30 20:09:50 -03:00
Georges Basile Stavracas Neto
5ba721b581
background: Use widgets to render slideshow emblem
...
Instead of manually rendering it.
2019-05-30 20:01:49 -03:00
Georges Basile Stavracas Neto
5b214404a1
background: Move preview to CcBackgroundPreview
...
This is a dedicate class to generate the preview. Not only
it renders the pixbuf of the wallpaper, but it also adds
lock screen or desktop frames on top of it. It also monitors
the time to keep the lock screen preview label always updated.
2019-05-30 20:01:48 -03:00
Georges Basile Stavracas Neto
205bfb9446
background: Use the cairo_t provided by GTK
...
Instead of creating our own one using a deprecated function.
2019-05-30 20:01:48 -03:00
Georges Basile Stavracas Neto
214f03750b
background: Remove CcBackgroundChooserDialog
...
It's functionality moved to CcBackgroundChooser.
2019-05-30 20:01:48 -03:00
Georges Basile Stavracas Neto
c64ab472b6
background: Switch to GtkFlowBox
...
This is a major rework on how images are loaded and stored.
Unfortunately, this is so entangled that doing each change
as an atomic step is pretty much unfeasible.
The first major change is that BgSource now returns a GListStore
instead of a GtkListStore. This is necessary for us to bind it
to GtkFlowBox, and pretty much signals we're not using any of
the tree/icon views anymore.
Second, the thumbnail factory was moved to BgSource itself. We
only create factories for large thumbnails, so it's not needed
to handle each one of them individually.
At last, switch CcBackgroundChooser to GtkFlowBox, and adjust
the signals we connect to.
2019-05-30 20:01:45 -03:00
Georges Basile Stavracas Neto
ee37d0194c
background: Cache thumbnails in CcBackgroundItem
...
We don't actually need to use custom qdata in GObjects to do
that; instead, cache the thumbnail directly in the item.
2019-05-30 20:01:12 -03:00
Georges Basile Stavracas Neto
df80d4a2fe
background-panel: Remove background chooser buttons
...
The chooser itself is now located below, and we don't need
to have the buttons anymore.
2019-05-30 20:01:12 -03:00
Georges Basile Stavracas Neto
2f032f224a
background: Introduce CcBackgroundChooser
...
It will become essentially what CcBackgroundChooserDialog,
but without a dialog and organized differently. Right now,
it is as minimal as it could be and only shows wallpapers.
As we grow it, it may cover pictures and even colors.
2019-05-30 20:01:12 -03:00
Georges Basile Stavracas Neto
5afc292c2b
background: Make BgSource receive a GtkWidget
...
Instead of a GtkWindow. We don't really depend on GtkWindow
itself, just any widget with access to the scale factor.
2019-05-30 20:01:12 -03:00
Georges Basile Stavracas Neto
ad740deeea
background: Turn into a template class
2019-05-30 20:01:11 -03:00
Georges Basile Stavracas Neto
c290dadf0c
background: Rename ui file to cc-background-panel.ui
2019-05-30 20:01:11 -03:00
Benjamin Berg
936a66f4ca
keyboard: Add microphone mute key
...
Add the required UI for users to change the newly mic-mute keybinding.
See also https://bugzilla.gnome.org/show_bug.cgi?id=793596
https://bugzilla.gnome.org/show_bug.cgi?id=793641
2019-05-27 20:48:35 +00:00
Benjamin Berg
f972ffc569
keyboard: Clarify that mute key toggles the mute state
...
This is just a string change to make it clear that the mute keys toggle
the mute state rather than simply muting the volume.
https://bugzilla.gnome.org/show_bug.cgi?id=793641
2019-05-27 20:48:35 +00:00
Marek Kasik
2b1f76f8ea
printers: Revert previous 2 commits
...
I'm sorry, I pushed to wrong branch. This code is
for testing now and will be proposed later, after
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/merge_requests/108
will be merged.
2019-05-24 19:12:00 +02:00
Marek Kasik
21df888699
printers: Do not notify about job edited by user
...
Let gnome-settings-daemon know about intention to edit a job
so it does not show notification for this action as it
was initiated manually by user.
Do this via g-s-d's DBus method DoNotNotifyJob.
2019-05-24 19:07:55 +02:00
Marek Kasik
86c7505dee
printers: Use correct type for print job id
...
There was pointer to integer used instead of integer for job_id in 2 functions.
This actually works somehow but I'm changing it to proper integer.
2019-05-24 19:07:52 +02:00
Benjamin Berg
6872c767bb
sound: Clean up labels of devices without origin
...
Sound devices may not have an origin, in that case we ended up with a
trailing " - " in the label which should not be there. Add a check that
the origin is non-null and not an empty string and only show the devices
description otherwise.
2019-05-22 17:19:26 +02:00
Georges Basile Stavracas Neto
5ec241aae2
keyboard: Move "Reset All" to the start of the headerbar
...
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
2019-05-21 13:00:32 -03:00
Georges Basile Stavracas Neto
75f150d5a2
shell: Add position to cc_shell_embed_widget_in_header()
...
So we can control where the widget should be added to. The
main window only supports left and right positions.
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
2019-05-21 12:59:36 -03:00
Georges Basile Stavracas Neto
20b3d0c653
keyboard: Remove "Keyboard Shortcuts" section header
...
It's unnecessary now that we have "Keyboard Shortcuts" everywhere
else.
2019-05-21 12:09:00 -03:00
Georges Basile Stavracas Neto
9385cc78d1
keyboard: Rename panel to "Keyboard Shortcuts"
...
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
2019-05-21 12:01:15 -03:00
scootergrisen
9299e503d1
Remove one of two "Proxy;" in Keywords
2019-05-17 17:30:39 +00:00
Ondrej Holy
f5f67823db
user-accounts: Present the default avatar in the avatar popover
...
Currently, it is not possible to unset a custom avatar, respective it
is not possible to set the default one. Let's present the default
avatar in the avatar popover as suggested in the mockup:
https://wiki.gnome.org/Design/OS/AvatarChooser
Fixes : GNOME/gnome-control-center#62
2019-05-16 14:50:45 +00:00
Ondrej Holy
65a8c15467
user-accounts: Remove a redundant parameter
...
The `round_image()` function has the `icon_size` parameter, which is not
used by that function, because the size is determined from a pixbuf size.
Let's remove that redundant `icon_size` parameter.
2019-05-16 14:50:45 +00:00
Antoine Jacoutot
331f0d119b
info panel: return "Unknown" on OS lacking os-release
...
Return "Unknown" instead of the empty string if os_info fails.
2019-05-15 22:10:30 +00:00
Bastien Nocera
d36cffa290
sound: Add "input" and "output" keywords to the panel
2019-05-14 01:55:59 +00:00
Bastien Nocera
3966f33ce8
network: Add "hotspot" keyword to the WiFi panel
2019-05-14 01:55:59 +00:00
Bastien Nocera
2bf154132e
network: Add "proxy" keyword to the panel
2019-05-14 01:55:59 +00:00
Bastien Nocera
dff4d1f323
power: Don't treat all batteries as laptop batteries
...
They might be device batteries where the device type is not known or
catalogued.
2019-05-07 12:53:23 +02:00
Ethan Hsieh
83e055c9be
power: correct the value of 90 minutes to 5400
2019-05-02 13:35:14 +08:00
Carlos Garnacho
8f825c5cc0
wacom: Dispose custom style provider with calibrator
...
Each CalibArea created adds a style provider that is never removed,
remove it on calib_area_free() to avoid the leak.
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/504
2019-05-01 16:10:06 +02:00
Carlos Garnacho
dbd78496e1
wacom: Ensure calibrator UI CSS only applies to its UI
...
Set a name on the fullscreen window, and require it in all selectors
in the custom CSS. Fixes style leaking to other g-c-c bits.
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/504
2019-05-01 16:09:58 +02:00
Florian Müllner
ba328a1993
network: Remove Wifi & friends from keywords
...
Wifi was split out into a dedicated panel.
2019-04-30 18:08:57 +00:00
Benjamin Berg
f75c3a8471
display: Fix crash if a monitor has no preferred mode
...
When a monitor has no current mode set and also no preferred mode we ran
into a crash. Simply select the first mode we can find as a further
fallback.
2019-04-30 14:16:17 +00:00
Jakub Steiner
db98738366
Applications: use larger icons
...
- the new application icon style strongly advises to use
sizes above 32px. Lower the whitespace to fit more items
- make fullcolor icons not semi-opaque
2019-04-24 00:27:18 +00:00
Carlos Garnacho
4c31ff5269
network: Handle Infiniband as a wired interface
...
The configuration/UI we expose for wired settings are meaningful for those
devices as well.
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/489
2019-04-23 19:46:32 +02:00
Sebastien Bacher
8541ef9e46
Include glib/gi18n.h which is needed for gettext
2019-04-10 11:27:14 +02:00
Sebastien Bacher
1268137e63
night-light: set screen temperature strings as translatable
...
Fixes #437
2019-04-09 21:07:12 +02:00
Robert Ancell
d34bbda386
region: Fix input source options not being applied.
...
This was broken in a86cf1eca2
(3.32) when the input options dialog was converted
into a GtkPopover. Previously two GSettings objects were used, with one set to
'delay-apply' mode. The input source option didn't apply the changes.
The 'delay-apply' mode is from the original commit d3852fc831
, however code was
simplified in b3199dd
to only set one setting. This meant that the delay is no
longer necessary.
Fixes #440
2019-04-09 14:14:31 +12:00
Georges Basile Stavracas Neto
25be82715a
applications: Add a placeholder widget for the sidebar list
...
So we keep it consistent with other lists that allow filtering,
such as the main panel list itself.
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
8070940e6e
applications: Add search entry to the sidebar
...
This matches the current mockups [1] for the panel, and
allows easily finding applications.
[1] https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/applications/applications-wires.png
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
6b5d8a93b6
applications: Select the first row at startup
...
That way we are not presented the empty view initially.
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
622fec8303
applications: Trivial code style update
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
de724065c6
applications: Remove unecessary cast
...
The variable is a GtkListBox already.
2019-04-01 22:27:51 +00:00
Felipe Borges
6046d562cf
mouse: Reinstate keyboard navigation in the panel
...
Fixes #246
2019-04-01 13:25:35 +02:00
Veerasamy Sevagen
fb130c06d0
panels/network/cc-wifi-connection-row.ui:Setting Connection/SSID as non-translatable.
...
Set to non-translatable as it is just a placeholder.
This change has been requested by Benjamin Berg(@bberg).
Issue has not been created for this but it was stated in issue#397
2019-03-31 23:22:06 +00:00
Veerasamy Sevagen
bf3d97e50d
panels/display/cc-display-settings.ui: Adding context to "Scale"
...
The title property for "Scale" did not have any context.
2019-03-29 18:50:04 +00:00
Adrien Plazas
39ed06188a
sharing: Ellipsize the labels
...
This helps ensuring the panel fits in narrow windows.
2019-03-29 18:20:56 +00:00
Adrien Plazas
b73213ebaf
sharing: Adapt the indentation
...
This adapts the indentation of the children of HdyColumn, which were
deliberately left intact in the previous commit to make it more
readable.
2019-03-29 18:20:56 +00:00