Пример #1
0
 ImageContainer()
 {
     image = new Gtk.Image();
     Add(image);
     image.SetAlignment(0.5f, 0f);
     Show();
 }
Пример #2
0
		public DetailsPane () : base (1, 2, false)
		{
			RowSpacing = ColumnSpacing = 6;
			BorderWidth = 6;

			icon = new Gtk.Image ();
			icon.SetAlignment (0.5f, 0.5f);
			icon.Show ();
			Attach (icon, 0, 1, 0, 1, fill, fill, 6, 0);

			base.SizeRequested += DetailsSizeRequested;
		}
Пример #3
0
        public DetailsPane() : base(1, 2, false)
        {
            RowSpacing  = ColumnSpacing = 6;
            BorderWidth = 6;

            icon = new Gtk.Image();
            icon.SetAlignment(0.5f, 0.5f);
            icon.Show();
            Attach(icon, 0, 1, 0, 1, fill, fill, 6, 0);

            base.SizeRequested += DetailsSizeRequested;
        }
Пример #4
0
        public MessageDialog()
        {
            Resizable    = false;
            HasSeparator = false;
            BorderWidth  = 12;

            label            = new Gtk.Label();
            label.LineWrap   = true;
            label.Selectable = true;
            label.UseMarkup  = true;
            label.SetAlignment(0.0f, 0.0f);

            secondaryLabel            = new Gtk.Label();
            secondaryLabel.LineWrap   = true;
            secondaryLabel.Selectable = true;
            secondaryLabel.UseMarkup  = true;
            secondaryLabel.SetAlignment(0.0f, 0.0f);

            icon = new Gtk.Image(Gtk.Stock.DialogInfo, Gtk.IconSize.Dialog);
            icon.SetAlignment(0.5f, 0.0f);

            Gtk.StockItem item = Gtk.Stock.Lookup(icon.Stock);
            Title = item.Label;

            Gtk.HBox hbox = new Gtk.HBox(false, 12);
            Gtk.VBox vbox = new Gtk.VBox(false, 12);

            vbox.PackStart(label, false, false, 0);
            vbox.PackStart(secondaryLabel, true, true, 0);

            hbox.PackStart(icon, false, false, 0);
            hbox.PackStart(vbox, true, true, 0);

            VBox.PackStart(hbox, false, false, 0);
            hbox.ShowAll();

            Buttons = Gtk.ButtonsType.OkCancel;
        }
Пример #5
0
		public MessageDialog ()
		{
			Resizable = false;
			HasSeparator = false;
			BorderWidth = 12;

			label = new Gtk.Label ();
			label.LineWrap = true;
			label.Selectable = true;
			label.UseMarkup = true;
			label.SetAlignment (0.0f, 0.0f);

			secondaryLabel = new Gtk.Label ();
			secondaryLabel.LineWrap = true;
			secondaryLabel.Selectable = true;
			secondaryLabel.UseMarkup = true;
			secondaryLabel.SetAlignment (0.0f, 0.0f);

			icon = new Gtk.Image (Gtk.Stock.DialogInfo, Gtk.IconSize.Dialog);
			icon.SetAlignment (0.5f, 0.0f);

			Gtk.StockItem item = Gtk.Stock.Lookup (icon.Stock);
			Title = item.Label;

			Gtk.HBox hbox = new Gtk.HBox (false, 12);
			Gtk.VBox vbox = new Gtk.VBox (false, 12);

			vbox.PackStart (label, false, false, 0);
			vbox.PackStart (secondaryLabel, true, true, 0);

			hbox.PackStart (icon, false, false, 0);
			hbox.PackStart (vbox, true, true, 0);

			VBox.PackStart (hbox, false, false, 0);
			hbox.ShowAll ();

			Buttons = Gtk.ButtonsType.OkCancel;
		}
Пример #6
0
 ImageContainer()
 {
     image = new Gtk.Image ();
     Add (image);
     image.SetAlignment (0.5f, 0f);
     Show ();
 }