diff options
author | waker <wakeroid@gmail.com> | 2009-07-04 03:06:34 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-07-04 03:06:34 +0200 |
commit | 56ccf563e1de7068e414df1d05f0dd015cd44f7a (patch) | |
tree | 16c86ec05830b245f0e05bbfb12c2842ea3ca927 /main.c | |
parent | 4f836e3de6c0a40f7bb29650ae9ae3230bad31b4 (diff) |
thrown in some gui
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -1,8 +1,14 @@ +#include <gtk/gtk.h> +#include "interface.h" +#include "support.h" #include <stdio.h> #include "playlist.h" #include "psdl.h" #include "unistd.h" + +GtkWidget *mainwin; + int main (int argc, char *argv[]) { if (argc <= 1) { @@ -13,11 +19,22 @@ main (int argc, char *argv[]) { if (!ps_add_file (argv[1])) { printf ("playing %s\n", argv[1]); psdl_play (playlist_head); - sleep (10); } else { printf ("failed to play %s\n", argv[1]); } + gtk_set_locale (); + gtk_init (&argc, &argv); + + /* + * The following code was added by Glade to create one of each component + * (except popup menus), just so that you see something after building + * the project. Delete any components that you don't want shown initially. + */ + mainwin = create_mainwin (); + gtk_widget_show (mainwin); + gtk_main (); psdl_free (); + ps_free (); return 0; } |