[dasher] g/c tutorial



commit 04a66f3e7ff1e06b043b808ef6ecd8fc7f891c86
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Fri Aug 12 17:04:40 2011 +0100

    g/c tutorial
    
    It seems that in d4ab97a5, plans for a dasher tutorial got as far
    as:
    
    static void
    dasher_main_command_tutorial(DasherMain *pSelf) {
      // TODO: Implement this
    }

 Src/Gtk2/dasher_editor_internal.cpp |    6 ------
 Src/Gtk2/dasher_editor_internal.h   |    3 ---
 Src/Gtk2/dasher_main.cpp            |   11 ++---------
 3 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/Src/Gtk2/dasher_editor_internal.cpp b/Src/Gtk2/dasher_editor_internal.cpp
index 5b88232..d2c2ba5 100644
--- a/Src/Gtk2/dasher_editor_internal.cpp
+++ b/Src/Gtk2/dasher_editor_internal.cpp
@@ -29,9 +29,6 @@ struct _DasherEditorInternalPrivate {
   DasherAppSettings *pAppSettings;
   gchar *szFilename;
   gboolean bFileModified; // TODO: Make this work properly, export to main for quit etc
-  //moved from dasher_internal_buffer:
-  //GtkTextView *pTextView; //duplicate
-  //GtkTextBuffer *pBuffer; //duplicate
   GtkTextTag *pOutputTag;
   GtkTextTag *pHiddenTag;
   GtkTextTag *pVisibleTag;
@@ -102,9 +99,6 @@ void dasher_editor_internal_handle_start(DasherEditor *pSelf);
 
 void dasher_editor_internal_grab_focus(DasherEditor *pSelf);
 
-/* TODO: Tutorial editor should be a separate class */
-//void dasher_editor_internal_start_tutorial(DasherEditor *pSelf);
-
 /* Todo: possibly tidy up the need to have this public (quit in dasher_main possibly too connected) */
 gboolean dasher_editor_internal_file_changed(DasherEditor *pSelf);
 const gchar *dasher_editor_internal_get_filename(DasherEditor *pSelf);
diff --git a/Src/Gtk2/dasher_editor_internal.h b/Src/Gtk2/dasher_editor_internal.h
index 7e32f58..9a055bf 100644
--- a/Src/Gtk2/dasher_editor_internal.h
+++ b/Src/Gtk2/dasher_editor_internal.h
@@ -72,9 +72,6 @@ GType dasher_editor_internal_get_type();
 
 /* void dasher_editor_internal_grab_focus(DasherEditorInternal *pSelf); */
 
-/* /\* TODO: Tutorial editor should be a separate class *\/ */
-/* //void dasher_editor_internal_start_tutorial(DasherEditorInternal *pSelf); */
-
 /* /\* Todo: possibly tidy up the need to have this public (quit in dasher_main possibly too connected) *\/ */
 /* gboolean dasher_editor_internal_file_changed(DasherEditorInternal *pSelf); */
 /* const gchar *dasher_editor_internal_get_filename(DasherEditorInternal *pSelf); */
diff --git a/Src/Gtk2/dasher_main.cpp b/Src/Gtk2/dasher_main.cpp
index fce7d4a..8073a35 100644
--- a/Src/Gtk2/dasher_main.cpp
+++ b/Src/Gtk2/dasher_main.cpp
@@ -94,7 +94,6 @@ static void dasher_main_command_import(DasherMain *pSelf);
 static void dasher_main_command_quit(DasherMain *pSelf);
 static void dasher_main_command_preferences(DasherMain *pSelf);
 static void dasher_main_command_preferences_alphabet(DasherMain *pSelf);
-static void dasher_main_command_tutorial(DasherMain *pSelf);
 static void dasher_main_command_help(DasherMain *pSelf);
 static void dasher_main_command_about(DasherMain *pSelf);
 static void dasher_main_command_toggle_game_mode(DasherMain*);
@@ -369,9 +368,8 @@ dasher_main_cb_##item(GtkAction *obj, DasherMain *p)\
   dasher_main_command_##item(p);\
 }
 
-/* XXX PRLW: There is mention of "tutorial", but no function, (and
- * preferences_alphabet isn't called externally.)
- * editor passes on the action strings to dasher_editor_command which
+/*
+ * Editor passes on the action strings to dasher_editor_command which
  * land in dasher_editor_internal.
  */
 WRAP_CPP_CB(import)
@@ -1048,11 +1046,6 @@ dasher_main_command_preferences_alphabet(DasherMain *pSelf) {
 }
 
 static void 
-dasher_main_command_tutorial(DasherMain *pSelf) {
-  // TODO: Implement this
-}
-
-static void 
 dasher_main_command_help(DasherMain *pSelf) {
 #ifdef HAVE_GTK_SHOW_URI
   DasherMainPrivate *pPrivate = DASHER_MAIN_GET_PRIVATE(pSelf);



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