X-Git-Url: https://harishankar.org/repos/?p=wordblah.git;a=blobdiff_plain;f=wordblox_player.c;fp=wordblox_player.c;h=d1f09294fb197f3ae8e1a54b6f26b3658accb551;hp=605d9f50139d59b9762f806ba3e811b00c66c2eb;hb=8f3a3d44db5d297336dc1138193514c6d79d080e;hpb=d2f6f0eb05c333a2b0991bb7613780aab629460f diff --git a/wordblox_player.c b/wordblox_player.c index 605d9f5..d1f0929 100644 --- a/wordblox_player.c +++ b/wordblox_player.c @@ -466,8 +466,8 @@ gboolean on_puzzle_area_draw (GtkWidget *widget, cairo_t *cr, gpointer data) /* slot for reveal solution menu */ void on_menu_reveal_solution_activate (GtkMenuItem *item, GtkDrawingArea *area) { - /* if puzzle is password protected ask for the password */ - if (strlen (app_data.puzzle.hashed_password) > 0) + /* if puzzle solution is password protected ask for the password */ + if (strlen (app_data.puzzle.hashed_solution_password) > 0) { GtkBuilder *builder; builder = gtk_builder_new (); @@ -504,7 +504,7 @@ void on_menu_reveal_solution_activate (GtkMenuItem *item, GtkDrawingArea *area) const gchar *user_pwd = gtk_entry_get_text (GTK_ENTRY(password_text)); /* if password is correct */ - if (verify_password (&app_data.puzzle, user_pwd) == true) + if (verify_solution_password (&app_data.puzzle, user_pwd) == true) app_data.solution_revealed = true; /* password is incorrect */ else @@ -534,6 +534,12 @@ void on_menu_reveal_solution_activate (GtkMenuItem *item, GtkDrawingArea *area) } +/* slot for load grid state menu */ +void on_menu_load_grid_state_activate (GtkMenuItem *item, gpointer *data) +{ + /* TODO */ +} + /* slot for save grid state menu */ void on_menu_save_grid_state_activate (GtkMenuItem *item, gpointer *data) {