gnome-media r3813 - in trunk/grecord: . src
- From: malureau svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r3813 - in trunk/grecord: . src
- Date: Sun, 23 Mar 2008 13:26:37 +0000 (GMT)
Author: malureau
Date: Sun Mar 23 13:26:37 2008
New Revision: 3813
URL: http://svn.gnome.org/viewvc/gnome-media?rev=3813&view=rev
Log:
2008-03-23 Marc-Andre Lureau <marcandre lureau gmail com>
* src/gsr-window.c (fill_record_input, record_state_changed_cb):
Make sure the input selector is insensitive if the source does not
implement GST_MIXER.
Modified:
trunk/grecord/ChangeLog
trunk/grecord/src/gsr-window.c
Modified: trunk/grecord/src/gsr-window.c
==============================================================================
--- trunk/grecord/src/gsr-window.c (original)
+++ trunk/grecord/src/gsr-window.c Sun Mar 23 13:26:37 2008
@@ -1766,7 +1766,7 @@
gtk_adjustment_set_value (GTK_RANGE (window->priv->scale)->adjustment, 0.0);
gtk_widget_set_sensitive (window->priv->scale, FALSE);
gtk_widget_set_sensitive (window->priv->profile, TRUE);
- gtk_widget_set_sensitive (window->priv->input, TRUE);
+ gtk_widget_set_sensitive (window->priv->input, GST_IS_MIXER (window->priv->mixer));
/* fall through */
case GST_STATE_PAUSED:
set_action_sensitive (window, "Stop", FALSE);
@@ -1886,12 +1886,9 @@
if (model)
gtk_list_store_clear (GTK_LIST_STORE (model));
- if (!GST_IS_MIXER (window->priv->mixer)) {
- gtk_widget_set_sensitive (window->priv->input, FALSE);
+ gtk_widget_set_sensitive (window->priv->input, GST_IS_MIXER (window->priv->mixer));
+ if (!GST_IS_MIXER (window->priv->mixer))
return;
- } else {
- gtk_widget_set_sensitive (window->priv->input, TRUE);
- }
for (l = gst_mixer_list_tracks (window->priv->mixer); l != NULL; l = l->next) {
GstMixerTrack *t = l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]