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

Version Path
gtk3-3.0.9-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.0.9-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.0.9 sample/gtk-demo/stack.rb
gtk3-3.0.8-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.0.8-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.0.8 sample/gtk-demo/stack.rb