Example #1
0
File: Label.cs Project: GNOME/nemo
        public override Gtk.ToggleButton representation(TypeLabels label_class)
        {
            string spacing = " ";

            b = new ToggleButton(spacing + type.name);

            b.Toggled += delegate(object sender, System.EventArgs e) { label_class.restrict_and_update(type.id); };
            if (!String.IsNullOrEmpty(type.icon))
                b.Image = new Gtk.Image(null, type.icon);
            else
                b.Image = CairoDrawing.create_empty_image(16, 16);

            GtkCommon.set_background_color(b, "white");

            b.BorderWidth = 0;
            b.Relief = Gtk.ReliefStyle.None;
            b.SetAlignment(0, 0);

            return b;
        }
Example #2
0
File: Label.cs Project: GNOME/nemo
 public abstract Gtk.ToggleButton representation(TypeLabels label_class);
Example #3
0
File: Label.cs Project: GNOME/nemo
 public override Gtk.ToggleButton representation(TypeLabels label_class)
 {
     throw new System.NotImplementedException();
 }