~ubuntu-branches/ubuntu/lucid/gbrainy/lucid

« back to all changes in this revision

Viewing changes to src/Clients/Classical/Dialogs/BuilderDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-03-08 11:11:11 UTC
  • mfrom: (13.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100308111111-pxz008t81zfu1w8q
Tags: 1.40-1ubuntu1
* Update from Debian unstable, remaining changes: (LP: #534113)
* debian/patches/01_lpi.patch:
* debian/patches/99_autoreconf.patch:
* debian/control:
  - Add Launchpad integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Jordi Mas i Hernàndez <jmas@softcatala.org>
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 */
 
19
 
 
20
using System;
 
21
using Gtk;
 
22
using GtkBeans;
 
23
 
 
24
namespace gbrainy.Clients.Classical
 
25
{
 
26
        public class BuilderDialog : Gtk.Dialog
 
27
        {
 
28
                public BuilderDialog (string resourceName, string dialogName) : this (null, resourceName, dialogName)
 
29
                {
 
30
                }
 
31
 
 
32
                public BuilderDialog (System.Reflection.Assembly assembly, string resourceName, string dialogName) : 
 
33
                        this (new GtkBeans.Builder (assembly, resourceName, null),dialogName)
 
34
                {
 
35
                }
 
36
 
 
37
                public BuilderDialog (GtkBeans.Builder builder, string dialogName) : base (builder.GetRawObject (dialogName))
 
38
                {
 
39
                        builder.Autoconnect (this);
 
40
                        IconName = "gbrainy";
 
41
                }
 
42
        }
 
43
}