Commit graph

152 commits

Author SHA1 Message Date
Bastien Nocera
b410ec353c sound: Fix gtk_tree_model_get_iter_first() retval
https://bugzilla.gnome.org/show_bug.cgi?id=749892
2015-05-27 11:06:02 +02:00
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
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
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
Rui Matos
70c33f473a sound: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:23:07 +01:00
Rui Matos
3d2576b5f3 sound/speaker-test: Port to GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Rui Matos
22fa7f1292 sound: Fix the main volume bars to correctly display changes in volume
The active input and output streams aren't added through add_stream()
so they weren't being mapped to their respective volume bars,
resulting in updates to the volume through other means not being
reflected in our UI.

Moving the mapping to bar_set_stream() which is called for every
stream fixes the problem. Also, there's no value in having a
helper function to do a g_hash_table_insert() and not doing the same
for the respective g_hash_table_remove()s so remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=738869
2014-10-21 15:07:17 +02:00
Debarshi Ray
fa35a97fb2 sound: Use GtkBox instead of GtkHBox
We need to account for the fact that unlike GtkHBox, GtkBox does not
expand the child in gtk_container_add.

https://bugzilla.gnome.org/show_bug.cgi?id=732624
2014-07-02 17:44:51 +02:00
Yosef Or Boczko
62c00c7a9a sound: Use header bar in the testing dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Debarshi Ray
f06a349a2a Use a consistent set of permissions when creating directories
https://bugzilla.gnome.org/show_bug.cgi?id=709417
2013-10-04 12:10:14 +02:00
Jasper St. Pierre
84b186803e Update gvc 2013-09-04 13:01:13 -04:00
Yosef Or Boczko
4fc66a57fa sound: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:58:30 +03:00
Thomas Wood
53270e96fb sound: don't show applications playing event sounds
https://bugzilla.gnome.org/show_bug.cgi?id=702093
2013-06-28 11:08:46 +01:00
Thomas Wood
5ce092c1e7 sound: prevent the "Test Speakers" dialog box from being resizable
https://bugzilla.gnome.org/show_bug.cgi?id=702487
2013-06-18 17:38:38 +01:00
Joshua Lock
b2658567dd sound: ensure "Test Speakers" dialog is closed if panel changed
When the g-c-c panel is changed from Sound to another panel whilst the Test
Speakers dialog is still open (i.e. user activates a panel via one of the
Shell indicators) the dialog remains shown and modal for the g-c-c window.

This change ensures that the "Test Speakers" dialog is closed when the panel
changes.

https://bugzilla.gnome.org/show_bug.cgi?id=700856
2013-06-04 11:50:47 +01:00
Lionel Landwerlin
1ac3c47a33 sound: fix potential memory corruption
https://bugzilla.gnome.org/show_bug.cgi?id=697555
2013-04-16 11:15:17 +01:00
Emanuele Aina
31a8a99440 shell: Let panels have their own commandline flags
Add a class method to CcPanel to get a GOptionGroup which will be added
to the main commandline parser. This gives panels the chance to have
commandline "--flags" in addition to the already available parameters.

This changes changes the way parameters are passed to panels: the first
entry in the GVariant array is always the a{sv} dictionary of
commandline flags, followed by the remaining free-form arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:11 +02:00
Emanuele Aina
9977bb200e shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured
data to panels, which will become relevant with the ability to invoke
them by GAction-based DBus-activation introduced in the following patch.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:02:10 +02:00
Bastien Nocera
c676657766 sound: Update to libgnome-volume-control master 2013-03-26 18:20:07 +01:00
Colin Walters
b5ecbb7aef build: Fix up submodule references, broken from previous commit 2013-03-14 18:03:16 -04:00
Ondrej Holy
254116f0c5 user-accounts: Don't unref users
libaccountsservice doesn't ref them before giving them to us,
so we shouldn't unref them when we're done with them.

https://bugzilla.gnome.org/show_bug.cgi?id=691891
2013-03-14 17:57:27 -04:00
Allan Day
d9a16bd14a sound: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
Giovanni Campagna
3e71962f10 sound: show a different icon for different input/output ports
Use the new API in libgnome-volume-control to create the icon shown
next to the port name in the selector. This avoids ugly audio-card icons,
and shows a speaker, microphone or headphones as appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=689931
2013-02-18 14:43:19 +01:00
Bastien Nocera
edc40ccf7d gvc: Update to latest master
Fix a compile-time warning:
cc1: warning: ./gvc/: No such file or directory [enabled by default]
2013-01-28 10:29:48 +01:00
Cosimo Cecchi
0a083ca973 sound: set has-origin = FALSE for the balance bar scale
The scale here is used for Left<->Right, so it doesn't have an origin.

https://bugzilla.gnome.org/show_bug.cgi?id=692238
2013-01-22 10:01:41 -05:00
Cosimo Cecchi
9b0a509966 sound: remove old GTK2 styling code
gtk_rc_parse_string() doesn't do anything these days, and we don't need
a name on the widget anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=692238
2013-01-22 10:01:40 -05:00
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Bastien Nocera
139c9888b5 sound: Dim the low/high icons associated with volume sliders
https://bugzilla.gnome.org/show_bug.cgi?id=689636
2012-12-06 16:25:15 +01:00
Giovanni Campagna
f1812b2707 Use libgnome-volume-control from a submodule
To be shared with gnome-settings-daemon and gnome-shell

https://bugzilla.gnome.org/show_bug.cgi?id=686488
2012-11-27 11:35:29 +01:00
David Henningsson
4da83dbba8 sound: Don't crash if pa_stream_peek returns NULL
pa_stream_peek can return NULL, even though it's unusual. In the upcoming
version of PulseAudio this has been clarified in the documentation.

In that case, don't crash, just call pa_stream_drop so that the
pointer moves forward.

https://bugzilla.gnome.org/show_bug.cgi?id=689079
2012-11-27 11:03:15 +01:00
Bastien Nocera
94506721aa sound: Remove fallback applet
As fallback is now gone. #fallback

https://bugzilla.gnome.org/show_bug.cgi?id=682861
2012-11-09 15:58:51 +01:00
Bastien Nocera
401274cee6 sound: Clarify "sound events"
"Event sounds" is clearer.

https://bugzilla.gnome.org/show_bug.cgi?id=687564
2012-11-06 11:14:19 +01:00
Matthias Clasen
fb8b858cba sound: Flip the input level bar in RTL languages
https://bugzilla.gnome.org/show_bug.cgi?id=684603
2012-09-25 13:12:26 +02:00
Bastien Nocera
b0dcb29857 sound: The angry flower read the comments again 2012-08-28 11:49:23 +01:00
Bastien Nocera
5b8509088c sound: Spell "Can't" properly in debug 2012-08-28 11:49:23 +01:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Bastien Nocera
8c7632e66e sound: Avoid use-after-free of destroyed streams
When switching between 2 outputs that share the same device with
different connector types, the old stream is destroyed, and a new one
with the new connector type created.

We were generating warnings because the old stream was destroyed, and
we were trying to access it. Instead we should remove the reference
to that old stream from the GvcLevelBars used for output and input
levels.
2012-08-21 17:43:27 +01:00
Bastien Nocera
e34dd3bb83 sound: Fix incorrectly documented return type
gvc_mixer_control_get_stream_from_device returns a GvcMixerStream,
not a container that contains one of those.
2012-08-21 17:43:27 +01:00
David Henningsson
4513207bfb sound: Remove hardware tab
Since the output and input tabs now offer the possibility to select
profile, we can remove the hardware tab completely.

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-08-21 17:43:27 +01:00
David Henningsson
ac2a8ced05 sound: Move "Test speakers" to the output tab
Test speakers will now test the speakers of the active output on
the output tab.

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-08-21 17:43:27 +01:00
David Henningsson
db8ee1eabe sound: Make speaker test work for sinks without card
By speaker-test taking a stream/sink instead of card as
parameter, it can be used for outputs that don't have cards
(e g network sinks).

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-08-21 17:43:26 +01:00
David Henningsson
b3fe98e7c1 sound: Make the dialog UI use GvcMixerUIDevice
The input and output treeview now represent GvcMixerUIDevices,
not sinks and sources. Also turn the connector combobox into a
profile combobox.

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-08-21 17:43:26 +01:00
Bastien Nocera
89fbf2b35b sound: Use PulseAudio's implementation of pa_cvolume_set_position() 2012-07-11 16:26:28 +01:00