Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login



In order to allow construction from a Gtk::Builder UI description, an object class must implement the Gtk::Buildable interface. The interface includes methods for setting names and properties of objects, parsing custom tags, constructing child objects.

The Gtk::Buildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK+. The main user of this interface is Gtk::Builder, there should be very little need for applications to call any Gtk::Buildable's functions.

Instance Methods

add_child(builder, child, type)
Adds a child to self. type is an optional string describing how the child should be added.
  • builder: a Gtk::Builder
  • child: child to add
  • type: kind of child or nil
  • Returns: self
construct_child(builder, name)

Constructs a child of self with the name name.

Gtk::Builder calls this function if a "constructor" has been specified in the UI definition.

  • builder: Gtk::Builder used to construct this object
  • name: name of child to construct
  • Returns: the constructed child
get_internal_child(builder, child_name)
Get the internal child called child_name of the buildable object.
  • builder: a Gtk::Builder
  • child_name: name of child
  • Returns: the internal child of self

Gets the name of self.

Gtk::Builder sets the name based on the Gtk::Builder UI definition used to construct self.

Sets the name of self.
  • name: name to set.
  • Returns: name
set_buildable_property(builder, name, value)
Sets the property name name to value on the object.
  • builder: Gtk::Builder.
  • name: name of property as String.
  • value: value of property.
  • Returns: self
Same as Gtk::Buildable#name=.
  • name: name to set.
  • Returns: self
  • Returns: self: FIXME
  • Returns: self: FIXME
  • Returns: self: FIXME


  • 2008-04-13: kou: add.
Last modified:2010/10/30 23:52:10
References:[Gtk::MenuItem] [News_20100923_1] [Gtk::ToolItem] [Gtk::TearoffMenuItem] [Gtk::HandleBox] [Gnome::PopupMenu] [Gtk::HSeparator] [Gnome::PrintJobPreview] [Gtk::OptionMenu] [Gtk::Fixed] [Gtk::Viewport] [Gtk::Layout] [Gtk::MenuShell] [Gtk::TextView] [Gtk::Action] [Gtk::HButtonBox] [Gtk::TreeView] [Gtk::TreeViewColumn] [Gnome::DruidPageStandard] [Gtk::RadioMenuItem] [Gtk::Buildable] [Gtk::AspectFrame] [Gtk::ImageMenuItem] [Gtk::HPaned] [Gnome::IconList] [Gtk::RadioButton] [Gtk::Builder] [Gtk::HScale] [Gtk::ComboBoxEntry] [Gtk::VPaned] [Gnome::ColorPicker] [Gtk::VScale] [Gnome::Druid] [Gtk::Label] [Gtk::Calendar] [Gtk::ColorSelectionDialog] [Gtk::MessageDialog] [Gnome::Scores] [Gtk::Image] [Gtk::ScrolledWindow] [Gtk::Socket] [Gtk::VRuler] [Gtk::Entry] [Gtk::FileChooserWidget] [Gtk::SeparatorMenuItem] [Gtk::FontSelectionDialog] [Gtk::Progress] [Gtk::Notebook] [index-ruby-gtk2] [Gtk::HtmlView] [Gtk::Statusbar] [Gtk::HRuler] [Gnome::App] [Gnome::AppBar] [Gtk::CheckMenuItem] [Gtk::DrawingArea] [Gnome::FontDialog] [Gtk::Separator] [Gtk::Container] [Gtk::ListStore] [Gtk::AccelLabel] [Gtk::Menu] [Gtk::Plug] [Gtk::ProgressBar] [Gnome::FileEntry] [Gtk::ColorButton] [Bonobo::Dock] [Gtk::Frame] [Gtk::FontButton] [Gtk::Bin] [Gnome::PixmapEntry] [Gtk::MenuBar] [Gtk::ToggleAction] [Gtk::UIManager] [Gtk::Arrow] [Gtk::Range] [Gtk::Toolbar] [Gtk::MenuToolButton] [Gtk::HtmlEmbedded] [Gtk::VolumeButton] [Gtk::IconView] [Gnome::About] [Gnome::FontPicker] [Gtk::Widget] [Gtk::GammaCurve] [Gnome::PrintConfigDialog] [Gnome::FontSelection] [Gtk::FileChooserDialog] [Gtk::SpinButton] [Gtk::RadioToolButton] [Gtk::Curve] [Gtk::VSeparator] [Gnome::Canvas] [Gtk::CellView] [Gtk::Scrollbar] [Gtk::TreeStore] [Gtk::EntryCompletion] [Gtk::InputDialog] [Gnome::IconSelection] [Bonobo::DockItem] [Gtk::MozEmbed] [Gtk::ToggleButton] [Gnome::PaperSelector] [Gtk::RecentAction] [Gtk::LinkButton] [Gtk::HBox] [Gtk::FileSelection] [Gtk::SizeGroup] [Gtk::VBox] [Gtk::RecentChooserDialog] [Gtk::FontSelection] [Gnome::IconEntry] [Gtk::Item] [tut-gtk2-contwidg-hvbox] [Gtk::Table] [Gtk::Box] [Gnome::DruidPage] [Gnome::DateEdit] [Gtk::FileChooserButton] [Gnome::PrintContentSelector] [Ruby/GTK] [tut-gtk2-btt-bttbox] [Gnome::PrintDialog] [Gtk::HScrollbar] [Gtk::RecentChooserMenu] [Gtk::CheckButton] [Gnome::PrintUnitSelector] [Gtk::ButtonBox] [Bonobo::UI::Engine] [Gtk::Button] [Gtk::RecentChooserWidget] [Gtk::Alignment] [Gtk::Expander] [Gtk::Window] [Gtk::Assistant] [Gtk::VScrollbar] [Gtk::Dialog] [Gnome::HRef] [Gtk::ScaleButton] [Gtk::Scale] [Gtk::ColorSelection] [Gtk::ComboBox] [Gtk::ToggleToolButton] [Gnome::DruidPageEdge] [Gtk::Paned] [Gtk::SourceView] [Gtk::ActionGroup] [Gtk::PrintUnixDialog] [Gtk::AboutDialog] [Gtk::ToolButton] [Gtk::Misc] [Bonobo::DockBand] [Gtk::PageSetupUnixDialog] [Gtk::Invisible] [Gtk::Combo] [Bonobo::Window] [Gtk::VButtonBox] [Gnome::Entry] [Vte::Terminal] [Gtk::SeparatorToolItem] [Gtk::IconFactory] [Gtk::Ruler] [Gtk::EventBox] [Gtk::RadioAction] [Gnome::FontPreview]