Commit graph

184 commits

Author SHA1 Message Date
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
Bastien Nocera
3cf252f4f0 sound: Remove support code for older PulseAudio
our define of PA_VOLUME_UI_MAX was only needed for PA 0.9.22 and older.
2012-07-11 16:24:53 +01:00
Conor Curran
1dfd464a59 sound: Add support for GvcMixerUIDevices in GvcMixerControl
https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 16:20:47 +01:00
Bastien Nocera
3201240eee sound: Add more debug 2012-07-11 16:20:44 +01:00
Conor Curran
2a567809a2 sound: Add "available" member to GvcMixerStreamPort
https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 16:20:40 +01:00
Bastien Nocera
6135c964a7 sound: Add gvc_mixer_ui_device_get_active_profile() helper
https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 16:20:36 +01:00
Bastien Nocera
0489296c33 sound: Fix indentation 2012-07-11 16:20:36 +01:00
Conor Curran
e32a02e2dd sound: Make sort_profiles public
And rename it to gvc_mixer_card_profile_compare()

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 16:20:32 +01:00
Conor Curran
e5e7080e4e sound: Add get_gicon() function to GvcMixerCard
https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 12:28:52 +01:00
Bastien Nocera
4da83052d2 sound: Indentation in gvc-mixer-card.h 2012-07-11 12:25:31 +01:00
Conor Curran
fd75ccd894 sound: Expose ports in GvcMixerCard
https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 12:25:17 +01:00
Conor Curran
db6afc8266 sound: Add new UIDevice object
GvcMixerUIDevice objects correspond to an item on either the input
or output tab - typically "Headphones", "Speaker", "Internal Mic" etc.

https://bugzilla.gnome.org/show_bug.cgi?id=674831
2012-07-11 12:04:08 +01:00
Bastien Nocera
e2a75e76c2 sound: Remove unused eol parameter 2012-07-11 11:21:18 +01:00
David Henningsson
ca29f85201 sound: Fixup "set default source" patch
The previous commit introduced a segfault due to referencing a
NULL pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=674925
2012-07-11 11:04:14 +01:00
David Henningsson
fe69f4f135 sound: Move running input streams when default source is changed
When changing the default input source, active recording streams
are not moved. This patch will fix that, which will make input
and output behaviour consistent.

As a bonus, it will not destroy pulseaudio's input database when
changing default sink anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=674925
2012-06-27 16:13:47 +01:00
Bastien Nocera
25708e9c8e sound: Make sure the event sound stream stays unmuted
Apply mute changes to the stream straight away so that we don't get a
race with gvc_mixer_event_role_push_volume().
See https://bugs.freedesktop.org/show_bug.cgi?id=51413 for details.

https://bugzilla.gnome.org/show_bug.cgi?id=677478
2012-06-25 16:38:16 +01:00
Matthias Clasen
bb531687ca sound: Fix mouse scrolls on sliders
Use gdk_event_get_scroll_deltas() to get the scroll direction.

https://bugzilla.gnome.org/show_bug.cgi?id=671724
2012-06-25 13:41:31 +01:00
Bastien Nocera
75cc274a3b sound: Fix use of deprecated gtk_vscale_new() 2012-06-25 13:33:31 +01:00
Bastien Nocera
9859ffbc27 sound: Remove left-click behaviour work-around
https://bugzilla.gnome.org/show_bug.cgi?id=678598
2012-06-25 13:33:31 +01:00