/* slot for reveal solution menu */
void on_menu_reveal_solution_activate (GtkMenuItem *item, GtkDrawingArea *area)
{
/* 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)
const gchar *user_pwd = gtk_entry_get_text
(GTK_ENTRY(password_text));
/* if password is correct */
const gchar *user_pwd = gtk_entry_get_text
(GTK_ENTRY(password_text));
/* if password is correct */
/* slot for save grid state menu */
void on_menu_save_grid_state_activate (GtkMenuItem *item, gpointer *data)
{
/* slot for save grid state menu */
void on_menu_save_grid_state_activate (GtkMenuItem *item, gpointer *data)
{