2000-06-25 21:38:00 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gnome.h>
|
2000-08-14 10:16:23 +00:00
|
|
|
#include <glade/glade.h>
|
2000-06-25 21:38:00 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2000-07-05 10:21:08 +00:00
|
|
|
#include "gstplay.h"
|
2000-06-25 21:38:00 +00:00
|
|
|
#include "callbacks.h"
|
|
|
|
|
2000-10-30 21:02:08 +00:00
|
|
|
GtkFileSelection *open_file_selection;
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
void
|
2000-08-14 10:16:23 +00:00
|
|
|
on_save1_activate (GtkMenuItem *menuitem,
|
2000-06-25 21:38:00 +00:00
|
|
|
gpointer user_data)
|
|
|
|
{
|
2000-08-14 10:16:23 +00:00
|
|
|
printf("file1 activate\n");
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-08-14 10:16:23 +00:00
|
|
|
on_save_as1_activate (GtkMenuItem *menuitem,
|
2000-06-25 21:38:00 +00:00
|
|
|
gpointer user_data)
|
|
|
|
{
|
2000-08-14 10:16:23 +00:00
|
|
|
printf("file1 activate\n");
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-08-14 10:16:23 +00:00
|
|
|
on_media2_activate (GtkMenuItem *menuitem,
|
2000-06-25 21:38:00 +00:00
|
|
|
gpointer user_data)
|
|
|
|
{
|
2000-08-14 10:16:23 +00:00
|
|
|
printf("file1 activate\n");
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
void
|
2000-08-14 10:16:23 +00:00
|
|
|
on_preferences1_activate (GtkMenuItem *menuitem,
|
2000-06-25 21:38:00 +00:00
|
|
|
gpointer user_data)
|
|
|
|
{
|
2000-08-14 10:16:23 +00:00
|
|
|
printf("file1 activate\n");
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2000-08-14 10:16:23 +00:00
|
|
|
void on_about_activate(GtkWidget *widget, gpointer data)
|
|
|
|
{
|
|
|
|
GladeXML *xml;
|
2000-10-30 21:02:08 +00:00
|
|
|
xml = glade_xml_new(DATADIR "gstmediaplay.glade", "about");
|
2000-08-14 10:16:23 +00:00
|
|
|
/* connect the signals in the interface */
|
|
|
|
glade_xml_signal_autoconnect(xml);
|
|
|
|
}
|
|
|
|
|
|
|
|
void on_gstplay_destroy(GtkWidget *widget, gpointer data)
|
|
|
|
{
|
2000-10-30 21:02:08 +00:00
|
|
|
gst_main_quit();
|
2000-08-14 10:16:23 +00:00
|
|
|
}
|
|
|
|
|