Quote:
Originally Posted by twobob
Running the player natively simply fails to open files. I'll strace it, probably a path issue or something. : )
|
I admit I didn't test the app thoroughly, but I didn't expect that:
gnash-0.8.10/gui/gtk/gtk.cpp
Code:
openFile(GtkWidget *widget, gpointer /* user_data */)
{
#if 0
// We'll need this when implementing file opening.
GtkGui* gui = static_cast<GtkGui*>(user_data);
#endif
#if GTK_CHECK_VERSION(2,4,0)
char* filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget));
#else
GtkWidget* file_selector = gtk_widget_get_ancestor(widget,
g_type_from_name("GtkFileSelection"));
GtkFileSelection* filesel = GTK_FILE_SELECTION (file_selector);
const char* filename = gtk_file_selection_get_filename (filesel);
#endif
// FIXME: we want to do something like calling gtk_main_quit here, so
// run() will return. If run() is then changed to return a pointer to the
// next file to be played, then the Player class can play the next file,
// unless run() returns NULL.
log_error(_("Attempting to open file %s.\n"
"NOTE: the file open functionality is not yet implemented!"),
filename);
#if GTK_CHECK_VERSION(2,4,0)
g_free(filename);
#endif
}
So, for now only opening files from command line works.