diff options
Diffstat (limited to 'mixgtk/mixgtk_gen_handlers.c')
-rw-r--r-- | mixgtk/mixgtk_gen_handlers.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/mixgtk/mixgtk_gen_handlers.c b/mixgtk/mixgtk_gen_handlers.c index e472341..8f0c07c 100644 --- a/mixgtk/mixgtk_gen_handlers.c +++ b/mixgtk/mixgtk_gen_handlers.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixgtk_gen_handlers.c : * Implementation of the functions declared in mixgtk_gen_handlers.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "01/02/23 00:36:31 jose" + * Last change: Time-stamp: "01/03/07 23:25:10 jose" * ------------------------------------------------------------------ * Copyright (C) 2001 Free Software Foundation, Inc. * @@ -21,8 +21,9 @@ * */ - +#include <mixlib/mix_vm_command.h> #include "mixgtk_gen_handlers.h" +#include "mixgtk_cmd_dispatcher.h" void on_main_window_destroy (GtkWidget *w, gpointer data) @@ -34,8 +35,12 @@ static void on_file_open_ok_ (GtkWidget *w, gpointer fs) { const gchar *file = gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs)); - g_print ("File %s selected\n", file); + gchar *command = g_strdup_printf ("%s %s", + mix_vm_command_to_string (MIX_CMD_LOAD), + file); gtk_widget_destroy (GTK_WIDGET (fs)); + mixgtk_cmd_dispatcher_dispatch (command); + g_free (command); } static void @@ -65,15 +70,6 @@ on_file_open_activate (GtkWidget *w, gpointer data) void on_file_exit_activate (GtkWidget *w, gpointer data) { - g_message ("File_exit activated"); gtk_main_quit (); } -void -on_debug_activate (GtkWidget *w, gpointer data) -{ -} - - - - |