summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_gen_handlers.c
diff options
context:
space:
mode:
authorjaortega <jaortega>2001-03-09 00:13:21 +0000
committerjaortega <jaortega>2001-03-09 00:13:21 +0000
commit13884bea299129048c1912510292d1207f520323 (patch)
tree302b5a4dd8b6b72b4c509db36a3c50309271d764 /mixgtk/mixgtk_gen_handlers.c
parentbcfdf63cda901a90b2438274385ada935b7812f0 (diff)
downloadmdk-13884bea299129048c1912510292d1207f520323.tar.gz
mdk-13884bea299129048c1912510292d1207f520323.tar.bz2
partial functionality implemented
Diffstat (limited to 'mixgtk/mixgtk_gen_handlers.c')
-rw-r--r--mixgtk/mixgtk_gen_handlers.c20
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)
-{
-}
-
-
-
-