public RadioToolButton(Gtk.RadioToolButton group) : base(IntPtr.Zero) { if (GetType() != typeof(RadioToolButton)) { var vals = new List <GLib.Value> (); var names = new List <string> (); CreateNativeObject(names.ToArray(), vals.ToArray()); return; } Raw = gtk_radio_tool_button_new_from_widget(group == null ? IntPtr.Zero : group.Handle); }
public override void Wrap(object obj, bool initialized) { base.Wrap(obj, initialized); Gtk.RadioToolButton radio = (Gtk.RadioToolButton)Wrapped; if (!initialized) { Group = GroupManager.LastGroup; } else if (radio.Group == null) { Group = radio.Name; } }
public RadioToolButton(Gtk.RadioToolButton group, string stock_id) : base(IntPtr.Zero) { if (GetType() != typeof(RadioToolButton)) { var vals = new List <GLib.Value> (); var names = new List <string> (); if (group != null) { names.Add("stock_id"); vals.Add(new GLib.Value(stock_id)); } CreateNativeObject(names.ToArray(), vals.ToArray()); return; } IntPtr native_stock_id = GLib.Marshaller.StringToPtrGStrdup(stock_id); Raw = gtk_radio_tool_button_new_with_stock_from_widget(group == null ? IntPtr.Zero : group.Handle, native_stock_id); GLib.Marshaller.Free(native_stock_id); }