[dasher] Gtk2: fix cursor movement callback and save-on-quit



commit 70be6d205b4b0e7b7e8c3294b0bac21ccc1814e7
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Mon Jul 11 15:30:04 2011 +0100

    Gtk2: fix cursor movement callback and save-on-quit

 Src/Gtk2/dasher_editor_internal.cpp |    2 +-
 Src/Gtk2/dasher_main.cpp            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/Gtk2/dasher_editor_internal.cpp b/Src/Gtk2/dasher_editor_internal.cpp
index 9caed7b..b13013b 100644
--- a/Src/Gtk2/dasher_editor_internal.cpp
+++ b/Src/Gtk2/dasher_editor_internal.cpp
@@ -693,7 +693,7 @@ void dasher_editor_internal_mark_changed(DasherEditorInternal *pSelf, GtkTextIte
     // by a callback registered by editor_internal, which then emitted a context_changed
     // signal from the editor_internal. So just emit the context_changed directly...
     if (!pPrivate->bInControlAction //tho not if it's the result of a control-mode edit/delete
-        && dasher_app_settings_get_bool(pPrivate->pAppSettings, BP_GAME_MODE)) //and not in game mode
+        && !dasher_app_settings_get_bool(pPrivate->pAppSettings, BP_GAME_MODE)) //and not in game mode
       g_signal_emit_by_name(G_OBJECT(pSelf), "context_changed", G_OBJECT(pSelf), NULL, NULL);
   }
 }
diff --git a/Src/Gtk2/dasher_main.cpp b/Src/Gtk2/dasher_main.cpp
index 670772b..e2a8cde 100644
--- a/Src/Gtk2/dasher_main.cpp
+++ b/Src/Gtk2/dasher_main.cpp
@@ -1055,7 +1055,7 @@ static void dasher_main_command_quit(DasherMain *pSelf) {
       gtk_widget_destroy(GTK_WIDGET(pDialogue));
       break;
     case GTK_RESPONSE_ACCEPT:
-      dasher_editor_command(pPrivate->pEditor, "save");
+      dasher_editor_command(pPrivate->pEditor, "action_save");
       gtk_main_quit();
       break;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]