add: is_local = totem_display_is_local (totem); g_message ("display is %s", is_local ? "local" : "remote");
context: totem_setup_preferences (Totem *totem){	GtkWidget *item;	const char *mediadev;	gboolean show_visuals, auto_resize;	int connection_speed;	char *path;	g_return_if_fail (totem->gc != NULL);	gconf_client_add_dir (totem->gc, "/apps/totem",			GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);	gconf_client_notify_add (totem->gc, GCONF_PREFIX"/auto_resize",			(GConfClientNotifyFunc) auto_resize_changed_cb,			totem, NULL, NULL);	gconf_client_notify_add (totem->gc, GCONF_PREFIX"/show_vfx",			(GConfClientNotifyFunc) show_vfx_changed_cb,			totem, NULL, NULL);	gconf_client_notify_add (totem->gc, GCONF_PREFIX"/mediadev",			(GConfClientNotifyFunc) mediadev_changed_cb,			totem, NULL, NULL);	totem->prefs = glade_xml_get_widget (totem->xml, "dialog1");	g_signal_connect (G_OBJECT (totem->prefs),			"response", G_CALLBACK (hide_prefs), (gpointer) totem);	g_signal_connect (G_OBJECT (totem->prefs), "delete-event",			G_CALLBACK (hide_prefs), (gpointer) totem);	auto_resize = gconf_client_get_bool (totem->gc,			GCONF_PREFIX"/auto_resize", NULL);	item = glade_xml_get_widget (totem->xml, "checkbutton1");	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (item), auto_resize);	g_signal_connect (G_OBJECT (item), "toggled",			G_CALLBACK (on_checkbutton1_toggled), totem);	bacon_video_widget_set_auto_resize		(BACON_VIDEO_WIDGET (totem->bvw), auto_resize);	item = glade_xml_get_widget (totem->xml, "checkbutton2");	show_visuals = gconf_client_get_bool (totem->gc,			GCONF_PREFIX"/show_vfx", NULL);	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (item), show_visuals);	bacon_video_widget_set_show_visuals		(BACON_VIDEO_WIDGET (totem->bvw), show_visuals);	g_signal_connect (G_OBJECT (item), "toggled",			G_CALLBACK (on_checkbutton2_toggled), totem);	item = glade_xml_get_widget (totem->xml, "custom3");	mediadev = gconf_client_get_string		(totem->gc, GCONF_PREFIX"/mediadev", NULL);	if (mediadev == NULL || (strcmp (mediadev, "") == 0)			|| (strcmp (mediadev, "auto") == 0))	{		mediadev = bacon_cd_selection_get_default_device			(BACON_CD_SELECTION (item));		gconf_client_set_string (totem->gc, GCONF_PREFIX"/mediadev",				mediadev, NULL);		bacon_video_widget_set_media_device			(BACON_VIDEO_WIDGET (totem->bvw), mediadev);	} else {		bacon_video_widget_set_media_device			(BACON_VIDEO_WIDGET (totem->bvw), mediadev);	}	bacon_cd_selection_set_device (BACON_CD_SELECTION (item),			gconf_client_get_string			(totem->gc, GCONF_PREFIX"/mediadev", NULL));	g_signal_connect (G_OBJECT (item), "device-changed",			G_CALLBACK (on_combo_entry1_changed), totem);	connection_speed = bacon_video_widget_get_connection_speed (totem->bvw);	item = glade_xml_get_widget (totem->xml, "optionmenu1");	gtk_option_menu_set_history (GTK_OPTION_MENU (item),			connection_speed);	g_signal_connect (item, "changed",			(GCallback)option_menu_connection_changed, totem);	item = glade_xml_get_widget (totem->xml, "button1");	g_signal_connect (G_OBJECT (item), "clicked",			G_CALLBACK (on_button1_clicked), totem);	path = g_build_path (G_DIR_SEPARATOR_S,			g_get_home_dir (), PROPRIETARY_PLUGINS, NULL);	bacon_video_widget_set_proprietary_plugins_path		(totem->bvw, path);	g_free (path);}