Sha256: dde193291e6cdf38e504222a7824808965e522bd00508aac46ea58b721e3f728

Contents?: true

Size: 656 Bytes

Versions: 86

Compression:

Stored size: 656 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

class StackDemo
  def initialize(main_window)
    builder = Gtk::Builder.new(:resource => "/stack/stack.ui")
    builder.connect_signals {}
    @window = builder["window1"]
    @window.screen = main_window.screen
  end

  def run
    if !@window.visible?
      @window.show_all
    else
      @window.destroy
    end
    @window
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
gtk3-3.2.5-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.5 sample/gtk-demo/stack.rb
gtk3-3.2.4-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.4-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.4 sample/gtk-demo/stack.rb
gtk3-3.2.3-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.3-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.3 sample/gtk-demo/stack.rb
gtk3-3.2.2-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.2-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.2 sample/gtk-demo/stack.rb
gtk3-3.2.1-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.1-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.1 sample/gtk-demo/stack.rb
gtk3-3.2.0-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.0-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.2.0 sample/gtk-demo/stack.rb
gtk3-3.1.9-x64-mingw32 sample/gtk-demo/stack.rb
gtk3-3.1.9-x86-mingw32 sample/gtk-demo/stack.rb
gtk3-3.1.9 sample/gtk-demo/stack.rb