gnome-media r4047 - in trunk/gnome-volume-control: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4047 - in trunk/gnome-volume-control: . src
- Date: Tue, 11 Nov 2008 20:15:19 +0000 (UTC)
Author: mccann
Date: Tue Nov 11 20:15:18 2008
New Revision: 4047
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4047&view=rev
Log:
2008-11-11 William Jon McCann <jmccann redhat com>
* src/gvc-mixer-dialog.c (add_stream):
Also add default streams to tree models.
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/gvc-mixer-dialog.c
Modified: trunk/gnome-volume-control/src/gvc-mixer-dialog.c
==============================================================================
--- trunk/gnome-volume-control/src/gvc-mixer-dialog.c (original)
+++ trunk/gnome-volume-control/src/gvc-mixer-dialog.c Tue Nov 11 20:15:18 2008
@@ -317,7 +317,17 @@
bar = dialog->priv->input_bar;
} else if (stream == gvc_mixer_control_get_event_sink_input (dialog->priv->mixer_control)) {
bar = dialog->priv->effects_bar;
- } else if (GVC_IS_MIXER_SOURCE (stream)) {
+ } else {
+ bar = create_bar (dialog);
+ gvc_channel_bar_set_name (GVC_CHANNEL_BAR (bar),
+ gvc_mixer_stream_get_name (stream));
+ gvc_channel_bar_set_icon_name (GVC_CHANNEL_BAR (bar),
+ gvc_mixer_stream_get_icon_name (stream));
+ g_object_set_data (G_OBJECT (bar), "gvc-mixer-dialog-stream", stream);
+ gtk_box_pack_start (GTK_BOX (dialog->priv->applications_box), bar, FALSE, FALSE, 12);
+ }
+
+ if (GVC_IS_MIXER_SOURCE (stream)) {
GtkTreeModel *model;
GtkTreeIter iter;
model = gtk_tree_view_get_model (GTK_TREE_VIEW (dialog->priv->input_treeview));
@@ -339,14 +349,6 @@
DEVICE_COL, "",
STREAM_COL, stream,
-1);
- } else {
- bar = create_bar (dialog);
- gvc_channel_bar_set_name (GVC_CHANNEL_BAR (bar),
- gvc_mixer_stream_get_name (stream));
- gvc_channel_bar_set_icon_name (GVC_CHANNEL_BAR (bar),
- gvc_mixer_stream_get_icon_name (stream));
- g_object_set_data (G_OBJECT (bar), "gvc-mixer-dialog-stream", stream);
- gtk_box_pack_start (GTK_BOX (dialog->priv->applications_box), bar, FALSE, FALSE, 12);
}
if (bar != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]