1
/* Groundhog -- a simple logic game
2
* Copyright (C) 1998-2001 Maurits Rijk
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#include "options_dialog.h"
23
OptionsDialog::OptionsDialog(Game* game) : Dialog(_("Options")), _game(game)
27
GtkWidget* box = gtk_hbox_new(FALSE, 1);;
28
gtk_container_border_width(GTK_CONTAINER(box), 10);
29
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(_window)->vbox), box, TRUE, TRUE, 10);
30
_tooltips = gtk_check_button_new_with_label(_("Show Tooltips"));
31
gtk_container_add(GTK_CONTAINER(box), _tooltips);
32
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(_tooltips), TRUE);
33
gtk_widget_show(_tooltips);
41
_game->EnableTooltips((GTK_TOGGLE_BUTTON(_tooltips)->active)