summaryrefslogtreecommitdiff
path: root/callbacks.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-09-01 23:48:25 +0000
committerIan C <ianc@noddybox.co.uk>2006-09-01 23:48:25 +0000
commit37141ac197eaefeae9dada0bcc1c429ff584df44 (patch)
tree6bd93dbf3735d22e9dadb9d41ae1c68b980d0c0e /callbacks.c
parent025fbd0c161c8f528e20f034d84ad986a4ebef36 (diff)
GEMMA largely working. Fixed broken expressions with white space.
Diffstat (limited to 'callbacks.c')
-rw-r--r--callbacks.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/callbacks.c b/callbacks.c
index a0a7a1a..2b8ffa9 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -15,6 +15,7 @@
void CloseApplication(GtkObject *object, gpointer user_data)
{
+ GEMMA_Stop();
gtk_main_quit();
}
@@ -47,7 +48,7 @@ void OnLoadHEX(GtkButton *button, gpointer user_data)
{
static char path[PATH_MAX]={0};
- if (DialogFSelect("Select INTEL HEX File to load",path))
+ if (DialogFSelect("Open INTEL HEX File","INTEL HEX","*.hex",path))
{
GEMMA_LoadHEX(path);
}
@@ -58,7 +59,7 @@ void OnLoadLabels(GtkButton *button, gpointer user_data)
{
static char path[PATH_MAX]={0};
- if (DialogFSelect("Select Label File to load",path))
+ if (DialogFSelect("Open Label File","Labels","*.lbl",path))
{
GEMMA_LoadLabels(path);
}
@@ -67,12 +68,13 @@ void OnLoadLabels(GtkButton *button, gpointer user_data)
void OnRunUntil(GtkButton *button, gpointer user_data)
{
- DialogOK("Not yet implemented");
+ GEMMA_RunUntil();
}
void OnQuit(GtkButton *button, gpointer user_data)
{
+ GEMMA_Stop();
gtk_main_quit();
}
@@ -82,3 +84,7 @@ void OnMemoryViewChoice(GtkComboBox *combobox, gpointer user_data)
GEMMA_UpdateDisplay(UPDATE_MEM_VIEW);
}
+void OnViewMode(GtkToggleButton *togglebutton, gpointer user_data)
+{
+ GEMMA_UpdateDisplay(UPDATE_MEM_VIEW);
+}