summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_cmd_dispatcher.c
diff options
context:
space:
mode:
authorjaortega <jaortega>2001-03-10 02:34:32 +0000
committerjaortega <jaortega>2001-03-10 02:34:32 +0000
commitf40f9b8ac4eedc6b0ed6e5245a093d18710cf918 (patch)
tree6a147c075508fc8c833aba7e30916adaf1ab947d /mixgtk/mixgtk_cmd_dispatcher.c
parent59cc212ebe00245200e5a2d9f2393fbd1ddb4e94 (diff)
downloadmdk-f40f9b8ac4eedc6b0ed6e5245a093d18710cf918.tar.gz
mdk-f40f9b8ac4eedc6b0ed6e5245a093d18710cf918.tar.bz2
gui update
Diffstat (limited to 'mixgtk/mixgtk_cmd_dispatcher.c')
-rw-r--r--mixgtk/mixgtk_cmd_dispatcher.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/mixgtk/mixgtk_cmd_dispatcher.c b/mixgtk/mixgtk_cmd_dispatcher.c
index dc64f2f..d14c5ee 100644
--- a/mixgtk/mixgtk_cmd_dispatcher.c
+++ b/mixgtk/mixgtk_cmd_dispatcher.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_cmd_dispatcher.c :
* Implementation of the functions declared in mixgtk_cmd_dispatcher.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "01/03/07 23:17:54 jose"
+ * Last change: Time-stamp: "01/03/10 00:49:04 jose"
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -27,6 +27,7 @@
#include <mixlib/mix_vm_command.h>
#include "mixgtk_cmd_dispatcher.h"
#include "mixgtk_mixvm.h"
+#include "mixgtk_mixal.h"
/* a mix vm command dispatcher */
@@ -85,18 +86,22 @@ static void
load_post_hook_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg,
gpointer data)
{
+ mixgtk_mixal_load_file ();
+ mixgtk_mixal_update ();
}
static void
run_post_hook_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg,
gpointer data)
{
+ mixgtk_mixal_update ();
}
static void
next_post_hook_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg,
gpointer data)
{
+ mixgtk_mixal_update ();
}
@@ -119,6 +124,7 @@ mixgtk_cmd_dispatcher_init (void)
if (!out) return FALSE;
dis_data_.out = out;
dis_data_.dispatcher = mix_vm_cmd_dispatcher_new (out, out);
+ mix_vm_cmd_dispatcher_print_time (dis_data_.dispatcher, FALSE);
mix_vm_cmd_dispatcher_global_pre_hook (dis_data_.dispatcher,
global_pre_hook_, NULL);
mix_vm_cmd_dispatcher_global_post_hook (dis_data_.dispatcher,
@@ -147,6 +153,18 @@ mixgtk_cmd_dispatcher_dispatch (const gchar *command)
on_mixvm_cmd_entry_activate (entry, NULL);
}
+/* get times */
+void
+mixgtk_cmd_dispatcher_get_times (gint *uptime, gint *progtime, gint *laptime)
+{
+ if (uptime != NULL)
+ *uptime = mix_vm_cmd_dispatcher_get_uptime (dis_data_.dispatcher);
+ if (progtime != NULL)
+ *progtime = mix_vm_cmd_dispatcher_get_progtime (dis_data_.dispatcher);
+ if (laptime != NULL)
+ *laptime = mix_vm_cmd_dispatcher_get_laptime (dis_data_.dispatcher);
+}
+
/* get the underlying vm */
extern mix_vm_t *
mixgtk_cmd_dispatcher_get_vm (void)