2
* Copyright (C) 2008 Jordi Mas i Hernàndez <jmas@softcatala.org>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (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 GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
25
namespace gbrainy.Clients.Classical
27
public class GtkDialog
30
public Gtk.Dialog dialog;
31
public string dialog_name;
33
public GtkDialog (string dialog_name)
35
this.dialog_name = dialog_name;
36
xml = new Glade.XML (null, "gbrainy.glade", dialog_name, "gbrainy");
37
xml.Autoconnect (this);
38
Dialog.IconName = "gbrainy";
42
public ResponseType Run ()
44
return (ResponseType) Dialog.Run ();
47
public Gtk.Dialog Dialog {
50
dialog = (Gtk.Dialog) xml.GetWidget (dialog_name);