Sha256: fe5db8d701ebca6d066a1460167c81088a71bd671f1f0eca1f1f8112336eba3d
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
Gtk.load_class :RadioButton module Gtk # Add non-introspected functions to Gtk::Lib module Lib attach_function :gtk_radio_button_new, [:pointer], :pointer attach_function :gtk_radio_button_new_from_widget, [:pointer], :pointer end # Overrides for GtkRadioButton class RadioButton def self.new *args obj = allocate obj.send :initialize, *args obj end def self.new_from_widget *args obj = allocate obj.send :initialize_from_widget, *args obj end def initialize group v1 = GLib::SList.from(Gtk::RadioButton, group) v2 = Gtk::Lib.gtk_radio_button_new(v1) store_pointer(v2) end def initialize_from_widget radio_group_member v1 = Gtk::RadioButton.from(radio_group_member) v2 = Gtk::Lib.gtk_radio_button_new_from_widget(v1) store_pointer(v2) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-gtk-0.8.0 | lib/gir_ffi-gtk/radio_button.rb |