? .bacon-video-widget-xine.c.swp
? extinfo-crasher.m3u
? gnome-mmkeys.c
? gnome-mmkeys.h
? itunes-crasher.pls
? metadata-test-suite.sh
? metadata-test-xine
? mozilla-plugin-shell.c
? mozilla-plugin-shell.h
? mozilla-plugin-widget-static.c
? mozilla-plugin-widget.c
? mozilla-plugin-widget.h
? totem-thumb.patch
Index: bvw-test.c
===================================================================
RCS file: /cvs/gnome/totem/src/bvw-test.c,v
retrieving revision 1.6
diff -u -r1.6 bvw-test.c
--- bvw-test.c	23 Dec 2004 23:58:29 -0000	1.6
+++ bvw-test.c	9 Mar 2005 21:57:14 -0000
@@ -6,7 +6,9 @@
 
 GtkWidget *win;
 GtkWidget *xine;
+GtkWidget *win2, *button;
 char *mrl, *argument;
+gboolean shown = TRUE;
 
 static void test_xine_set_mrl(char *path)
 {
@@ -25,6 +27,19 @@
 	bacon_video_widget_play (BACON_VIDEO_WIDGET (xine), NULL);
 }
 
+static void
+button_pressed (GtkButton *button, gpointer data)
+{
+	shown = !shown;
+	if (shown == FALSE) {
+		g_message ("hiding");
+		gtk_widget_hide (xine);
+	} else {
+		g_message ("showing");
+		gtk_widget_show (xine);
+	}
+}
+
 int main(int argc, char *argv[])
 {
 	guint32 height = 500;
@@ -56,9 +71,18 @@
 	gtk_widget_show(win);
 	gtk_widget_show(xine);
 
+	win2 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+	button = gtk_button_new_with_label ("hide/show");
+	gtk_container_add(GTK_CONTAINER(win2), button);
+	g_signal_connect (G_OBJECT (button), "clicked",
+			G_CALLBACK (button_pressed), NULL);
+	gtk_widget_show_all (win2);
+
 	mrl = NULL;
 	test_xine_set_mrl(argv[1] ? argv[1] : LOGO_PATH);
 	argument = g_strdup (argv[1] ? argv[1] : LOGO_PATH);
+	bacon_video_widget_set_volume (BACON_VIDEO_WIDGET (xine), 5);
+	bacon_video_widget_set_show_visuals (BACON_VIDEO_WIDGET (xine), TRUE);
 	bacon_video_widget_play (BACON_VIDEO_WIDGET (xine), NULL);
 	gtk_main();
 
