Gtk.MediaFile.set_filename

### Method

# Gtk MediaFileset_filename

#### Declaration [src]

    void
    gtk_media_file_set_filename (
      GtkMediaFile* self,
      const char* filename
    )

#### Description [src]

Sets the `GtkMediaFile to play the given file.

This is a utility function that converts the given `filename` to a `GFile` and calls `gtk_media_file_set_file()`.

#### Parameters

`filename`

  Type: `const char*`

  Name of file to play.

  The argument can be `NULL`.
  The data is owned by the caller of the method.
  The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.