Sha256: 449e287f2e10e74303ba41f752106d3dfbdaea1936e679010e698802046525a2
Contents?: true
Size: 694 Bytes
Versions: 6
Compression:
Stored size: 694 Bytes
Contents
# Copyright (c) 2015 Ruby-GNOME2 Project Team # This program is licenced under the same licence as Ruby-GNOME2. # =begin = Stack GtkStack is a container that shows a single child at a time, with nice transitions when the visible child changes. GtkStackSwitcher adds buttons to control which child is visible. =end module StackDemo def self.run_demo(main_window) builder = Gtk::Builder.new(:resource => "/stack/stack.ui") builder.connect_signals {} window = builder["window1"] window.screen = main_window.screen window.signal_connect("destroy") { window.destroyed(window) } if !window.visible? window.show_all else window.destroy end end end
Version data entries
6 entries across 6 versions & 1 rubygems