#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
require 'gtk_paradise/require_gtk2'

alias e puts

e
e '1) Testing HBox next:'
e
hbox = Gtk::HBox.new
e hbox.respond_to? :pack_start
e hbox.respond_to? :pack
e
e 'Note: both methods used above ^^^ should return true if all went well.'
e
e '2) Testing VBox next:'
e
vbox = Gtk::VBox.new
e vbox.respond_to? :pack_start
e vbox.respond_to? :pack

# =========================================================================== #
# The next part would fail, as Gtk::Box does not exist in ruby-gtk2. The
# reason why this is kept in this file is so that I don't forget it; also
# other users may instantly realise by this comment that Gtk::Box only
# exists since as of ruby-gtk3. Perhaps one day we may add a new Gtk::Box
# for ruby-gtk2 too - for the time being, as of the year 2022, this is
# however had not the case.
# e
# e '3) Testing Box next:'
# e
# box = Gtk::Box.new
# e box.respond_to? :pack_start
# e box.respond_to? :pack
# =========================================================================== #