Commit graph

5007 commits

Author SHA1 Message Date
Bastien Nocera
ca3779467e power: Add gaming input devices label
See https://bugs.freedesktop.org/show_bug.cgi?id=102493

https://bugzilla.gnome.org/show_bug.cgi?id=787087
2018-01-18 12:15:29 +01:00
Georges Basile Stavracas Neto
a37d04df42 connection-editor: Expose metered connection switch
NetworkManager supports marking a connection as metered, meaning
that connection is e.g. charged by its usage or extremely limited.
When a network is metered, background network usage must cease
and the behavior of the various OS pieces must be adjusted.

This patch adds a switch to set a connection as metered or not.
The property is imediately propagated to NetworkManager.

https://bugzilla.gnome.org/show_bug.cgi?id=792608
2018-01-18 00:37:31 -02:00
Piotr Drąg
b65e31323a panels: Remove soft hyphens from .desktop files
With the old shell gone, there is no need to work around cut off panel
names (bug #647087). As it stands now, it only confuses translators
(invisible characters are hard to, well, see).

https://bugzilla.gnome.org/show_bug.cgi?id=792629
2018-01-18 00:12:04 -02:00
Felipe Borges
afbdddc2ed sharing: properly resize listbox rows
https://bugzilla.gnome.org/show_bug.cgi?id=767646
2018-01-17 23:54:33 -02:00
Georges Basile Stavracas Neto
eca7f39782 sharing: Use gtk_menu_popup_at_pointer
Instead of the deprecated gtk_menu_popup().
2018-01-17 23:23:59 -02:00
Georges Basile Stavracas Neto
0af9a5ad64 sharing: Ensure CcHostnameEntry GType before initialization
The exact same reasoning of 35e670c6da.
2018-01-17 23:18:37 -02:00
Georges Basile Stavracas Neto
61c33da3cf trivial: Style cleanup 2018-01-17 22:17:12 -02:00
Georges Basile Stavracas Neto
35e670c6da info: Fix crash when opening Overview panel
The GType of CcHostnameEntry might not be registered
by the time the Overview panel is initialized, which
leads to crash.

Fix that by ensuring the CcHostnameEntry type early in
class_init.
2018-01-17 22:13:27 -02:00
Georges Basile Stavracas Neto
62f07b2c6d common: Don't unconditionally define HAVE_WAYLAND
This header unconditionally defines HAVE_WAYLAND when GTK
is built with Wayland support. This breaks the build when
building with Wayland disabled.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:38 -02:00
Iñigo Martínez
32edd6789e build: Port to meson build system
Meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:35 -02:00
Iñigo Martínez
d7012d0337 build: Move libgd and gvc modules to subprojects
In order to share the libgd and gvc modules between autotools and
meson, this patch moves their directories to subprojects
directory and updates autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 19:02:57 -02:00
Carlos Garnacho
f24b528695 common: Check for wayland before building GsdUdevDeviceManager
Udev is rather common, so this check doesn't suffice if anyone wants
to build with no wayland support whatsoever.

https://bugzilla.gnome.org/show_bug.cgi?id=780544
2018-01-16 17:35:03 +01:00
Bastien Nocera
7ce6bd1e55 sound: Respect allow-volume-above-100-percent setting
Instead of always allowing above 100% volumes for hardware that supports
it, only enable it when the allow-volume-above-100-percent setting is
set to true as well.

See https://bugzilla.gnome.org/show_bug.cgi?id=790988

https://bugzilla.gnome.org/show_bug.cgi?id=791272
2018-01-12 20:13:00 +01:00
Felipe Borges
b3d51d9051 sound: Embed the "Applications" tab content in a scrolled window
The "Applications" tab might expand vertically indefinitely depending
on the amount of applications playing sounds simultaneously. This
causes the whole Control Center window to grow vertically.

To reproduce the issue you'd need to launch multiple sound sources.
  1. Launch "gst-play-1.0 <music file>"
  2. Press space to pause the playback
  3. Press Ctrl+Z to send it into the background
  4. Goto 1.

These changes pack the content of the "Applications" tab in a
GtkScrolledWindow.

To avoid having the scrollbar overlapping the switchers, we set a
10px margin-end to the inner container.

https://bugzilla.gnome.org/show_bug.cgi?id=786684
2018-01-09 16:48:40 +01:00
Benjamin Berg
3f3c4bed87 display: Reset configuration when switching layouting modes
When switching between screen mirroring and joining displays the
configuration needs to be reset. Otherwise the monitor scaling will
not be set back to the current scaling again.

Split out the code to reset the current configuration and call that when
the mode is switched to ensure the changes are minimal.

https://bugzilla.gnome.org/show_bug.cgi?id=790768
2017-12-08 16:09:58 +00:00
Georges Basile Stavracas Neto
6123d97e3f project: Remove CcInfoPanel
This panel was hidden in the new shell, and now that
we don't have the old one, can be safely dropped.

Minor adjustments were made to the other panels to
properly remove this panel.

https://bugzilla.gnome.org/show_bug.cgi?id=790923
2017-11-28 17:03:51 -02:00
Georges Basile Stavracas Neto
b23ef59926 shell-model: Remove old categories
Since we don't maintain two different shells anymore, there
is no need to maintain the two different sets of categories
in the desktop files.

This commit also drops the "#ifdef CC_ENABLE_ALT_CATEGORIES"
blocks, since the previous commit removed that define.

https://bugzilla.gnome.org/show_bug.cgi?id=790923
2017-11-28 17:03:51 -02:00
Julian Sparber
b0833430c6 privacy: update location state in panel when it changes
Add a signal handler for changes of the location setting to update
(on/off/In use) lable.

https://bugzilla.gnome.org/show_bug.cgi?id=785891
2017-11-23 15:43:33 +01:00
Felipe Borges
5d4cb8ea9c printer: Don't show the supply level bar by default
We were checking for the ink supply level at the callback of the
supply bar "draw" signal. This way we were making the the widget
visible, causing it to allocate vertical space even when it isn't
desired.

Now we check for the supply level before setting the visiblity of
the supply level widget.

https://bugzilla.gnome.org/show_bug.cgi?id=790667
2017-11-21 17:28:15 +01:00
Felipe Borges
950ca7f5cc printers: Allow printer name and location labels to hexpand
Since the main control-center window can now be resized, there's
no reason for us to constrain the printer name and location labels
from expanding horizontally.

https://bugzilla.gnome.org/show_bug.cgi?id=790665
2017-11-21 17:18:56 +01:00
Felipe Borges
fb43d37899 printers: Set default text and sensitivity for the Jobs button
This way we make sure that the right size is allocated at the
creation time and no undesirable resizes occur after a refresh.

https://bugzilla.gnome.org/show_bug.cgi?id=790663
2017-11-21 17:12:15 +01:00
Elias Entrup
154101448a display: Wrap frame subtitle label
Currently, the display window is very wide due to the subtitle label.
This patch adds line wrapping to the label and sets xalign to 0.

https://bugzilla.gnome.org/show_bug.cgi?id=790449
2017-11-16 18:07:40 +01:00
Rui Matos
cc329621e2 display: Ignore disabled and closed builtin panels in layout geometry
Extend the existing checks for this kind of outputs to the layout
geometry routines.

https://bugzilla.gnome.org/show_bug.cgi?id=789711
2017-11-15 15:10:15 +01:00
Rui Matos
245f796f4a display: Remove automatic layout adjustments
As the comment hinted at, fixing layouts automatically to ensure their
applicability doesn't actually work in all cases and in fact may force
users to redo their layout completely after a seemingly small change.

So, let's stop pretending we can do it and instead leave it to users
to fix it manually.

https://bugzilla.gnome.org/show_bug.cgi?id=789711
2017-11-13 18:31:39 +01:00
Rui Matos
46c2d43e62 display: Replace modal dialogs with popovers
The existing modal dialogs are cumbersome to use so let's replace them
with popovers that dismiss themselves automatically when an item is
activated.

https://bugzilla.gnome.org/show_bug.cgi?id=786726
2017-11-10 17:34:57 +01:00
Xiang Fan
f618a2212f network/wifi: don't set unnecessary focus
When its parent is allowed focus, the actual control never gets the
focus and is inaccessible from keyboard.

https://bugzilla.gnome.org/show_bug.cgi?id=789860
2017-11-08 15:34:02 +01:00
Xiang Fan
fe5ab55ec4 wifi: fix typo in device_removed_cb()
https://bugzilla.gnome.org/show_bug.cgi?id=789872
2017-11-08 15:34:02 +01:00
Sebastien Bacher
be90d59991 privacy: use the correct gsd housekeeping bus name
https://bugzilla.gnome.org/show_bug.cgi?id=737624
2017-11-01 17:05:45 +01:00
Rui Matos
cb4a7e1773 network: Avoid crashing if NM reports no devices or no connections
Seems like NM changed behavior recently but, in any case, better safe
than sorry.

https://bugzilla.gnome.org/show_bug.cgi?id=788716
2017-11-01 16:47:36 +01:00
Robert Ancell
6723ff4d2b background: Drop dead background screenshot code
The screenshot was only trying to capture gnome-shell's top bar to
overlay on the background preview but now on 3.26 the top bar might be
transparent which obviously wouldn't work at all for previewing a
different wallpaper.

https://bugzilla.gnome.org/show_bug.cgi?id=788206
2017-11-01 16:09:22 +01:00
Xiang Fan
959d841713 network/proxy: destroy dialog with the class
The dialog has several bindings to proxy settings, so it shouldn't
outlive the proxy class.

https://bugzilla.gnome.org/show_bug.cgi?id=788776
2017-11-01 16:08:45 +01:00
Rui Matos
8ae6950248 network/eap-method-tls: Don't require a private key password
The private key may be unencrypted or we might want to enable "always
ask".

https://bugzilla.gnome.org/show_bug.cgi?id=789660
2017-10-30 18:16:43 +01:00
Andrea Azzarone
dc46487081 sound: Discard selection-changed events that are not triggered by the user
The tree view in the input and the output tab uses the "selection-changed"
signal. This implies that when a row is removed (e.g. when unplugging heaphones) g-c-c
will receive the signal and try to change the active port. G-c-c should not be the one
deciding deciding which port should be active, the user or PA are smart enough. We
should descard selection-changed events that are not triggered by an user interaction.

https://bugzilla.gnome.org/show_bug.cgi?id=789551
2017-10-30 16:49:26 +01:00
Debarshi Ray
5a04e40fef Revert "online-accounts: Accept requests for account creation on ..."
It's been more than four years and nobody ended up using this feature.
However, the extra cookie management that's necessary to implement this
feature has now exposed code, which people actually use, to a
WebKitGTK+ bug that's taking quite some time to be fixed. Therefore,
this is a good an excuse as any to remove this code.

This reverts commit 8762e2f8dc

https://bugzilla.gnome.org/show_bug.cgi?id=789469
2017-10-25 12:34:45 +02:00
Jeremy Bicha
eefc10dbe5 notifications: Add help link
https://bugzilla.gnome.org/show_bug.cgi?id=789321
2017-10-24 11:42:31 -04:00
Jeremy Bicha
c9c1ba5f11 wifi: Fix help link
https://bugzilla.gnome.org/show_bug.cgi?id=789321
2017-10-24 11:42:31 -04:00
Felipe Borges
614fb9e27a printers: Make sure IPP_STATE_IDLE is defined
This changes are necessary because we don't require cups >= 1.4,
due to downstreams still shipping old cups versions.

The IPP_STATE_IDLE symbol has been introduced in cups 1.7. The
IPP_IDLE constant has been deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=789397
2017-10-24 12:34:54 +02:00
Jakub Steiner
8bfd0b97d6 sound: update artwork
- restyle all assets symbolic
- add missing mono speaker

https://bugzilla.gnome.org/show_bug.cgi?id=775170
2017-10-17 23:54:28 +02:00
Philip Withnall
be135e6263 info: Ignore more virtual file systems
Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=788878
2017-10-12 14:47:20 +01:00
Jeremy Bicha
6d1c5dbf4d info: Fix .desktop for About
https://bugzilla.gnome.org/show_bug.cgi?id=788608
2017-10-09 17:13:08 -04:00
Rui Matos
338719a876 network/wifi: Use cancellables for NM async operations
Our NM async callbacks already handle being cancelled and we already
have a cancellable in the base NetObject class, we just weren't wiring
it up to the async calls. Do that to prevent use after free crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=787010
2017-10-03 19:18:59 +02:00
Robert Ancell
43129a1cfd sound: Use G_DEFINE_TYPE 2017-09-26 21:09:56 -04:00
Robert Ancell
e779a30927 datetime: Use G_DEFINE_TYPE 2017-09-26 20:20:45 -04:00
Robert Ancell
999226832c info: Use G_DEFINE_TYPE 2017-09-25 16:11:32 -04:00
Robert Ancell
88bf8cfc57 bluetooth: Use G_DEFINE_TYPE 2017-09-25 16:04:21 -04:00
Robert Ancell
378e837a06 background: Use G_DEFINE_TYPE 2017-09-25 14:16:09 -04:00
Ondrej Holy
51c9a3235b user-accounts: Fix password strenght check
It is possible to use weak passwords in dialogs currently, which is
not intentional and leads to problems in case of changing password of
current user. This regression was introduced by Bug 780002, which added
new strength level for weak passwords. Let's reflect the new level also
when setting sensitivity...

https://bugzilla.gnome.org/show_bug.cgi?id=788122
2017-09-25 14:23:24 +02:00
Volodymyr Buell
daec536e25 background: Reduce the number of pixbuf creation by caching
https://bugzilla.gnome.org/show_bug.cgi?id=765887
2017-09-22 15:25:04 +02:00
Sebastien Bacher
12ddb730d6 color: set min-content-height on the profiles list
otherwise there is only space for one line to be displayed
https://bugzilla.gnome.org/show_bug.cgi?id=787931
2017-09-20 10:29:37 -03:00
Georges Basile Stavracas Neto
5a3b19ef33 network: Don't unref device after when parsing arguments
When we add the NetDevice pointer to the GPtrArray, we have
a single reference owned by the panel. When iterating over
this GPtrArray, no reference is taken.

The problem is that the code to handle command-line arguments
was unreferencing the NetDevices when iterating over it,
creating a disparity in the ref/unref pairs.

Fix that by simply not unreferencing the NetDevice instance
when iterating over it.

https://bugzilla.gnome.org/show_bug.cgi?id=786514
2017-08-29 18:11:30 -03:00