Commit graph

3845 commits

Author SHA1 Message Date
Bastien Nocera
7ae145cc2b sound: Update submodule to fix duplicated Bluetooth devices
https://bugzilla.gnome.org/show_bug.cgi?id=697545
2015-04-01 14:18:03 +02:00
Bastien Nocera
2e18538cc8 sound: Remove unused enumeration
Left-over from when we had a separate hardware tab.
2015-04-01 14:18:03 +02:00
Benjamin Tissoires
e2a14f4d4c wacom: add an icon for stylii without an eraser
wacom-stylus-no-eraser.svg is an adaptation of wacom-stylus.svg

https://bugzilla.gnome.org/show_bug.cgi?id=746117
2015-04-01 11:15:29 +02:00
Benjamin Tissoires
e463a1eb55 wacom: Update from gnome-settings-daemon
https://bugzilla.gnome.org/show_bug.cgi?id=746117
2015-04-01 11:15:29 +02:00
Benjamin Tissoires
66cb45bdad wacom: do not bail out if the tablet doesn't have an eraser
Tablets have not always an eraser (most of the generic tablets like Huion,
UC-Logic, etc... don't). We should not reject such tablets.

Commit 54849a9 (wacom: Only the stylus and eraser tools need to exist)
mentioned that we were not sure about eraser, and I think we should not
assume one either.

To do so, we simply ignore the eraser xinput node and rely on
libwacom to actually provide the eraser information.

If the stylus does not have the eraser tip, we may fall in the
LAYOUT_OTHER case. We have a picture of a generic Wacom pen with an
eraser, and the leaders linking the widget to the picture are scrambled.

To prevent that, gray out the eraser pressure slider so that we do not
break the layout.

https://bugzilla.gnome.org/show_bug.cgi?id=746117
2015-04-01 11:15:29 +02:00
Rui Matos
c12cb21065 network: Fix a crash on IPv6 settings dialog
Commit 219a94ed1e added a
g_object_unref() on the wrong line.
2015-03-27 15:00:46 +01:00
Richard Hughes
ff16c19832 color: Set the users profile title when generating a profile 2015-03-25 13:46:57 +00:00
Richard Hughes
d94d512dd1 color: Set the default profile quality at startup
I assume once we got a spurious callback from GTK to set this.
2015-03-25 13:46:28 +00:00
Debarshi Ray
7509af9d22 online-accounts: Don't scroll single entry lists
Create the scrolled window with vertical scrolling turned off. Turn it
on when there are more than one items in the list.

Note that the immediate parent of the list is a GtkViewport, so we
need to explicitly look for the GtkScrolledWindow.

https://bugzilla.gnome.org/show_bug.cgi?id=745584
2015-03-22 07:59:46 +01:00
Bastien Nocera
f6f4e7b774 network: Remove use of temporary variable
No need to copy a static string before using it.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:45 +01:00
Bastien Nocera
ba6da7636e network: Fix warning on panel exit
Now that the VPN object is getting finalized, make sure not to warn if
the NMClient is already gone.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:45 +01:00
Bastien Nocera
2cf597eb97 network: Fix reference leak of NetProxy
Every time we got the list of devices from the devices GtkListStore, we
were leaking the only element that wasn't a NetDevice, the proxy page.
Make sure to unref' it by hand if we're not going to add it to the list
(the elements of which will be unref'ed properly).

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:45 +01:00
Bastien Nocera
a6781932e9 network: Fix reference leak of NetVirtualDevices
The only reference is owned by the devices GtkListStore.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:45 +01:00
Bastien Nocera
eb14e558e5 network: Fix reference leak of NetVpn
The only reference is owned by the devices GtkListStore.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:45 +01:00
Bastien Nocera
234ed23138 network: Add sanity checks NetDevice and NetObject
https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Bastien Nocera
219a94ed1e network: Fix GtkListStore leak in IPv{4,6} dialogues
https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Bastien Nocera
0e428f2881 network: Remove unused GtkListStore objects
https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Bastien Nocera
60f6ba1d72 network: Fix the network panel being kept alive
NetObjects and CcNetworkPanel aren't widgets, and hold references to
each other. Simplify things by having NetObject hold a pointer to
CcNetworkPanel (and the singletons NMRemoteSettings and NMClient)
instead, and clear their pointers when the original object is unref'ed.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Bastien Nocera
5e7c1544fd sound: Fix output/output bars not following external changes
When looking up a bar for a particular stream, special-case the input
and output bars/streams, as they will not be added to the "bars"
hashtable (which is, as per comment, only for applications and the sound
events bar).

https://bugzilla.gnome.org/show_bug.cgi?id=738869
2015-03-17 12:21:22 +01:00
Bastien Nocera
2476dde3b5 Revert "sound: Fix the main volume bars to correctly display changes in volume"
This results in crashes when switching inputs or outputs, as other parts
of the code expect only application bars being added to that hashtable.
The bar was destroyed when switching outputs (as the stream is removed before
a new one being added) but with the bar pointing to freed memory.

This reverts commit 22fa7f1292.

https://bugzilla.gnome.org/show_bug.cgi?id=746227
2015-03-17 12:21:15 +01:00
Bastien Nocera
857f6ea8ef sound: Default to horizontal channel bars
This stops unnecessary orientation changes on panel startup.
2015-03-17 11:49:24 +01:00
Bastien Nocera
e9a833af12 sound: Fix visibility of bar when orientation is the same as the default
This will fix the bar not showing up when we switch the default
orientation. When we changed the orientation, we went through
update_layout() which shows the frame at the end. _init() didn't do
that.
2015-03-17 11:31:54 +01:00
Benjamin Tissoires
5fcf43a135 wacom: Allow button mapping if the stylus has one button too
The airbrush tool has only one button, and the button mapping combo box
does not work.
We should not bail out if the widget has been removed, that means that
the stylus does not support the second button.

Check upfront the number of buttons to know if the top button parameter
is available.

https://bugzilla.gnome.org/show_bug.cgi?id=746263
2015-03-16 12:53:41 +01:00
Cosimo Cecchi
6137c60195 sound: use row-activated to listen to alert sound changes
We currently install two signal handlers for button-press-event and
selection-changed. As the former also calls the latter, the two interact
in non-obvious ways that can lead to two alerts being played at the same
time under certain circumstances.
Avoid this problem by setting activate-on-single-click on the tree view
and listening to the row-activated signal to drive previews and model
changes.

https://bugzilla.gnome.org/show_bug.cgi?id=671446
2015-03-15 12:28:22 -07:00
Benjamin Tissoires
cf29acae5d wacom: test: add Huion H610 Pro panel
The tablet does not have an eraser, so it's good to have a test for it.

https://bugzilla.gnome.org/show_bug.cgi?id=746117
2015-03-13 17:00:30 +01:00
Bastien Nocera
555429009e wacom: Update from gnome-settings-daemon 2015-03-13 17:00:30 +01:00
Joaquim Rocha
abb0592866 region: Reuse the input chooser instance
The language input chooser is being created and destroyed every time
it is opened and closed. This is noticeably slow and is hardly
necessary as the values it contains should not change.

To fix this, these changes reuse the same instance of the input chooser
(by hiding and showing it) instead of renewing it.
The input chooser is also now shown using gtk_dialog_run to avoid having
it destroyed from the default delete event.
2015-03-10 19:45:07 +01:00
Joaquim Rocha
bd6347d02a region: Clear input chooser rows instead of unrefing them
These changes prevent warnings when unreferencing the default input
source, locale and back rows which are never instanced by some locales
(and thus null).
2015-03-10 19:45:07 +01:00
Joaquim Rocha
bbae930988 region: Fix leak in input chooser
The language input chooser is being leaked. The reason for the leak
is a "circular reference": the input chooser keeps a GtkBuilder
instance that gets destroyed when the chooser is, itself, destroyed.
However, the input chooser is never destroyed because the GtkBuilder
instance keeps a reference to it.

These changes dismiss the GtkBuilder once it is no longer needed in the
input chooser which fixes the leak.
2015-03-10 19:45:07 +01:00
Matthias Clasen
165be44369 users: Fix fingerprint delete dialog formatting
The manual borderwidth setting breaks message dialog appearance.
While we are here, remove some unnecessary calls.

https://bugzilla.gnome.org/show_bug.cgi?id=745908
2015-03-10 06:43:12 -04:00
Bastien Nocera
78c22d24f8 power: Fix alignment of "Screen brightness" label 2015-03-09 18:10:55 +01:00
Bastien Nocera
0a96aa3bcd network: Make "only for this network" work for IPv6 VPNs
https://bugzilla.gnome.org/show_bug.cgi?id=738029
2015-03-09 16:12:25 +01:00
Bastien Nocera
33b1858787 network: Don't save hidden configuration options
When switching from a particular IPv4 or IPv6 "addresses" method to
another, make sure that "address", "DNS" and "routes" are applied or
ignored depending on that method's capabilities.

For example, when switching from manual to automatic IPv4 "addresses"
method, we need to make sure that the old IP address, gateway, etc.
aren't actually used in the new setting.

https://bugzilla.gnome.org/show_bug.cgi?id=734337
2015-03-09 16:07:15 +01:00
David King
b4c02fa3b3 sharing: Update help URI
https://bugzilla.redhat.com/show_bug.cgi?id=1193806
https://bugzilla.gnome.org/show_bug.cgi?id=745590
2015-03-04 15:49:53 +00:00
Rui Matos
87640bb6f8 region: Implement input source list re-ordering
The first input source gets activated by default when users log in but
we don't currently allow users to set this (other than the awkward
remove all input sources and add them again in the right order).

Allowing user re-ordering of the input source list nicely allows users
to get the default input source they want.

https://bugzilla.gnome.org/show_bug.cgi?id=743400
2015-02-28 20:57:38 +01:00
Rui Matos
da060fa691 region: Add accessible names to toolbar buttons
https://bugzilla.gnome.org/show_bug.cgi?id=743400
2015-02-28 20:57:38 +01:00
Rui Matos
44b36798a3 region: Join the input source settings and layout buttons
Currently it looks a bit unpolished that the add/remove buttons on the
other side of the toolbar look linked while this pair doesn't. Note
that the input source settings button isn't always visible but in that
case the layout button will still show up correctly as non-linked.

https://bugzilla.gnome.org/show_bug.cgi?id=743400
2015-02-28 20:57:38 +01:00
Florian Müllner
4179afc55c region: Shut up a compiler warning
The variable cannot actually be used uninitialized, but that's not
obvious to the compiler.
2015-02-28 11:38:58 +01:00
Ondrej Holy
3e6b741ad2 user-accounts: check for NULL on um_realm_object_get_common
um_realm_object_get_common can return NULL, which shouldn't be passed
into subsequent functions to avoid crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=705351
2015-02-25 15:50:17 +01:00
Rui Matos
511265e574 display: In clone mode, set geometry of all outputs when one changes
Otherwise we could fail to validate the new configuration depending on
which output we're initializing mirror mode from.

gnome_rr_config_applicable() creates a temporary array of outputs for
validation and, in clone mode, all of them are assigned the same
geometry but, since it lacks context about which output the user is
currently on, it just uses the first one's geometry for all of
them. If this first output isn't the one the user is changing in the
UI then we never called _set_geometry() on it with a clone mode
geometry and thus the validation would fail because the geometry used
is that output's current mode which might not match the clone mode's.

https://bugzilla.gnome.org/show_bug.cgi?id=743816
2015-02-23 19:38:56 +01:00
Ondrej Holy
de821d5922 user-accounts: don't show fingerprint options if disabled
Don't show fingerprint configuraiton if the administrator disabled
fingerprint authentication:
https://help.gnome.org/admin/system-admin-guide/stable/login-fingerprint.html

https://bugzilla.gnome.org/show_bug.cgi?id=744332
2015-02-23 12:57:18 +01:00
Bastien Nocera
d9f08df39c info: Fix crash when application supports no mime-type
It seems to be possible for Firefox Nightly to set itself up as the
default x-scheme-handler/http without actually handling any mime-types.

See https://bugzilla.redhat.com/show_bug.cgi?id=1193680

https://bugzilla.gnome.org/show_bug.cgi?id=744695
2015-02-19 15:21:51 +01:00
Rui Matos
8ea40157b6 keyboard: Add proper casts to silence compiler warnings 2015-02-17 14:55:43 +01:00
Marcus Karlsson
fe9fe99439 keyboard: custom shortcut should require name and command
It is possible to press the Add button in the custom shortcut dialog
when the name and command fields are empty. Disable the button by
default, and only enable it when the name and command is non-empty.

https://bugzilla.gnome.org/show_bug.cgi?id=739647
2015-02-10 13:50:17 +01:00
Tim Waugh
dba40e1301 network: Allocate storage for zone name during D-Bus call
The call to nm_setting_connection_get_zone() returns a pointer to
memory that will be freed before the D-Bus reply handler is called.
Make sure to take a copy of the string, and free it when finished.

https://bugzilla.gnome.org/show_bug.cgi?id=739971
2015-02-10 12:40:28 +01:00
Piotr Drąg
d07a704186 Updated Polish translation of timezones
Sync with fixes sent upstream.
2015-02-09 19:38:27 +01:00
Rui Matos
38180662cd sharing: Don't add the folder if the dialog isn't explicity accepted
E.g. selecting a folder and then dismissing the dialog via the cancel
button or by pressing escape would still add the folder to the shared
folders list.
2015-02-09 17:25:36 +01:00
Rui Matos
c6970ec8eb display: Replace CcRRLabeler with gnome-shell's DBus monitor labeler
CcRRLabeler assumes an X11 session using override redirect toplevel
windows which are positioned in global desktop coordinates. Since this
isn't available on Wayland sessions, we're moving to a DBus API which
gnome-shell implements and works the same on both X11 an Wayland
sessions.

As side-effects, we get native looking gnome-shell OSD labels without
having to mimic the style ourselves and we're also now able to easily
show labels on mirrored setups.

https://bugzilla.gnome.org/show_bug.cgi?id=743743
2015-02-05 14:37:05 +01:00
Michael Catanzaro
643a7a6849 power: ambiguous wifi and mobile broadband labels
Currently these switches function the opposite of their descriptions.
E.g. the wi-fi switch says "turns off wireless devices" which means that
if the switch is on, wi-fi would go off, but actually the behavior is
the opposite. Reword the labels to be less confusing.

https://bugzilla.gnome.org/show_bug.cgi?id=695417
2015-02-04 13:22:48 -06:00
Bastien Nocera
c3f9546952 power: Hide device battery when !is_present
iDevice batteries might show up before they're actually available
to read from, so check "is-present" before showing the device in the UI.
2015-02-03 23:10:45 +01:00