Logo Search packages:      
Sourcecode: f-spot version File versions

GladeDialog.cs

/*
 * FSpot.UI.Dialog.GladeDialog
 *
 * Author(s):
 *    Larry Ewing  <lewing@novell.com>
 *
 * This is free software. See COPYING for details.
 *
 */

namespace FSpot.UI.Dialog 
{
      public class GladeDialog
      {
            protected string dialog_name;
            protected Glade.XML xml;
            private Gtk.Dialog dialog;
            
            protected GladeDialog ()
            {
            }

            public GladeDialog (string name)
            {
                  CreateDialog (name);
            }

            protected void CreateDialog (string name)
            {
                  this.dialog_name = name;            
                  xml = new Glade.XML (null, "f-spot.glade", name, "f-spot");
                  xml.Autoconnect (this);
            }

            public Gtk.Dialog Dialog {
                  get {
                        if (dialog == null)
                              dialog = (Gtk.Dialog) xml.GetWidget (dialog_name);
                        
                        return dialog;
                  }
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index