? totem-hiding-audio-only.patch
? po/.intltool-merge-cache
? po/stamp-it
? src/.deps
? src/.libs
? src/.totem.c.swp
? src/bacon-message-connection.lo
? src/bacon-video-widget-properties.lo
? src/libbaconmessageconnection.la
? src/libbaconpropertiespage.la
? src/libtotem-properties-page.la
? src/libtotem_mozilla.la
? src/libtotem_properties_page_la-totem-properties-main.lo
? src/libtotem_properties_page_la-totem-properties-view.lo
? src/totem-interface.lo
? src/totem-mozilla-plugin.lo
? src/totem-mozilla-scriptable.lo
? src/backend/.deps
? src/backend/.libs
? src/backend/libbaconvideowidget.la
? src/backend/libbaconvideowidget_la-bacon-resize.lo
? src/backend/libbaconvideowidget_la-bacon-video-widget-gst-0.10.lo
? src/backend/libbaconvideowidget_la-baconvideowidget-marshal.lo
? src/backend/libbaconvideowidget_la-gstscreenshot.lo
? src/backend/libbaconvideowidget_la-video-utils.lo
? src/plparse/.deps
? src/plparse/.libs
? src/plparse/libtotem-plparser.la
? src/plparse/totem-disc.lo
? src/plparse/totem-pl-parser.lo
Index: src/totem.c
===================================================================
RCS file: /cvs/gnome/totem/src/totem.c,v
retrieving revision 1.489
diff -u -r1.489 totem.c
--- src/totem.c	8 Mar 2006 00:10:52 -0000	1.489
+++ src/totem.c	9 Mar 2006 16:43:01 -0000
@@ -1250,11 +1250,33 @@
 on_got_metadata_event (BaconVideoWidget *bvw, Totem *totem)
 {
         char *name = NULL;
+	GValue value = { 0, };
 
 	bacon_video_widget_properties_update
 		(BACON_VIDEO_WIDGET_PROPERTIES (totem->properties),
 		 totem->bvw);
-
+	bacon_video_widget_get_metadata (bvw, BVW_INFO_HAS_VIDEO, &value);
+	if (g_value_get_boolean(&value) == FALSE)
+	{
+		if (bacon_video_widget_get_show_visuals (bvw) == FALSE)
+		{
+			GtkCheckMenuItem *item;
+			item = GTK_CHECK_MENU_ITEM (glade_xml_get_widget
+					(totem->xml,
+					 "tmw_show_controls_menu_item"));
+			gtk_widget_hide (GTK_WIDGET (item));
+			gtk_widget_hide (GTK_WIDGET (bvw));
+			bacon_video_widget_set_scale_ratio (bvw, 1);
+		}
+	}else{
+		GtkCheckMenuItem *item;
+		item = GTK_CHECK_MENU_ITEM (glade_xml_get_widget
+				(totem->xml,
+				 "tmw_show_controls_menu_item"));
+		gtk_widget_show( GTK_WIDGET (item));
+		gtk_widget_show( GTK_WIDGET (bvw));
+	}
+	
 	name = totem_get_nice_name_for_stream (totem);
 
 	if (name != NULL) {
@@ -1898,14 +1920,23 @@
 {
 	GtkWidget *item;
 	gboolean state;
+	GValue value = { 0, };
 
 	if (totem_is_fullscreen (totem) != FALSE)
 		return;
-
+	if (bacon_video_widget_is_playing(totem->bvw)==FALSE)
+		return;
+	bacon_video_widget_get_metadata(totem->bvw, BVW_INFO_HAS_VIDEO, &value);
+	
+	if (g_value_get_boolean(&value)==FALSE)
+		if (bacon_video_widget_get_show_visuals(totem->bvw) == FALSE)
+			return;
+	
 	item = glade_xml_get_widget (totem->xml,
 			"tmw_show_controls_menu_item");
 	state = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (item));
 	gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), !state);
+
 }
 
 #ifndef HAVE_GTK_ONLY
@@ -2261,17 +2292,7 @@
 		gtk_window_present (GTK_WINDOW (totem->win));
 		break;
 	case TOTEM_REMOTE_COMMAND_TOGGLE_CONTROLS:
-		if (totem->controls_visibility != TOTEM_CONTROLS_FULLSCREEN)
-		{
-			GtkCheckMenuItem *item;
-			gboolean value;
-
-			item = GTK_CHECK_MENU_ITEM (glade_xml_get_widget
-					(totem->xml,
-					 "tmw_show_controls_menu_item"));
-			value = gtk_check_menu_item_get_active (item);
-			gtk_check_menu_item_set_active (item, !value);
-		}
+		totem_action_toggle_controls(totem);
 		break;
 	case TOTEM_REMOTE_COMMAND_SHOW_PLAYING:
 		{
Index: src/backend/bacon-video-widget-gst-0.10.c
===================================================================
RCS file: /cvs/gnome/totem/src/backend/bacon-video-widget-gst-0.10.c,v
retrieving revision 1.63
diff -u -r1.63 bacon-video-widget-gst-0.10.c
--- src/backend/bacon-video-widget-gst-0.10.c	5 Mar 2006 22:50:46 -0000	1.63
+++ src/backend/bacon-video-widget-gst-0.10.c	9 Mar 2006 16:43:07 -0000
@@ -2960,6 +2960,13 @@
   return FALSE;
 }
 
+gboolean
+bacon_video_widget_get_show_visuals (BaconVideoWidget *bvw)
+{
+	g_return_val_if_fail (bvw != NULL, FALSE);
+	return bvw->priv->show_vfx;
+}
+
 static gboolean
 filter_features (GstPluginFeature * feature, gpointer data)
 {
Index: src/backend/bacon-video-widget-gst.c
===================================================================
RCS file: /cvs/gnome/totem/src/backend/bacon-video-widget-gst.c,v
retrieving revision 1.205
diff -u -r1.205 bacon-video-widget-gst.c
--- src/backend/bacon-video-widget-gst.c	16 Feb 2006 15:00:02 -0000	1.205
+++ src/backend/bacon-video-widget-gst.c	9 Mar 2006 16:43:12 -0000
@@ -2481,6 +2481,14 @@
   return TRUE;
 }
 
+gboolean
+bacon_video_widget_get_show_visuals (BaocnVideoWidget * bvw);
+{
+  g_return_val_if_fail (bvw != NULL, FALSE);
+
+  return bvw->priv->show_vfx;
+}
+
 GList *
 bacon_video_widget_get_visuals_list (BaconVideoWidget * bvw)
 {
Index: src/backend/bacon-video-widget.h
===================================================================
RCS file: /cvs/gnome/totem/src/backend/bacon-video-widget.h,v
retrieving revision 1.66
diff -u -r1.66 bacon-video-widget.h
--- src/backend/bacon-video-widget.h	30 Jan 2006 10:22:19 -0000	1.66
+++ src/backend/bacon-video-widget.h	9 Mar 2006 16:43:12 -0000
@@ -224,6 +224,7 @@
 
 gboolean bacon_video_widget_set_show_visuals	  (BaconVideoWidget *bvw,
 						   gboolean show_visuals);
+gboolean bacon_video_widget_get_show_visuals	  (BaconVideoWidget *bvw);
 GList *bacon_video_widget_get_visuals_list	  (BaconVideoWidget *bvw);
 gboolean bacon_video_widget_set_visuals		  (BaconVideoWidget *bvw,
 						   const char *name);
