Sha256: 4e9c9d7f6f75d5c5855041f603a20867421aead46622e6e8d787fd67f6b75d12

Contents?: true

Size: 1020 Bytes

Versions: 222

Compression:

Stored size: 1020 Bytes

Contents

=begin header

  wmhints.rb - a part of testgtk.c rewritten in Ruby/GTK2

  Copyright (C) 2002-2005 Ruby-GNOME2 Project Team

  $Id: wmhints.rb,v 1.8 2005/07/21 17:47:19 mutoh Exp $
=end

require 'sample'

class WMHintsSample < SampleWindow
  def initialize
    super("WM Hints")

    realize

    circles = Gdk::Pixmap.create_from_xbm(window, "circles.xbm")
    window.set_icon(nil, circles, circles)
    window.icon_name = "WMHints Test Icon"
    window.decorations = Gdk::Window::DECOR_ALL | Gdk::Window::DECOR_MENU
    window.functions = Gdk::Window::FUNC_ALL | Gdk::Window::FUNC_RESIZE

    vbox = Gtk::VBox.new(false, 10)
    add(vbox)

    label = Gtk::Label.new("Try iconizing me!")
    label.set_size_request(150, 50)
    vbox.pack_start(label, true, true, 0)

    vbox.pack_start(Gtk::HSeparator.new, false, true, 0)

    button = Gtk::Button.new("close")
    button.signal_connect("clicked"){destroy}

    vbox.pack_start(button, true, true, 0)
    button.can_default = true
    button.grab_default
  end
end

Version data entries

222 entries across 222 versions & 2 rubygems

Version Path
gtk2-3.4.3 sample/testgtk/wmhints.rb
gtk2-3.4.2 sample/testgtk/wmhints.rb
gtk2-3.4.1 sample/testgtk/wmhints.rb
gtk2-3.4.0 sample/testgtk/wmhints.rb
gtk2-3.3.9 sample/testgtk/wmhints.rb
gtk2-3.3.8 sample/testgtk/wmhints.rb
gtk2-3.3.7 sample/testgtk/wmhints.rb
gtk2-3.3.6 sample/testgtk/wmhints.rb
gtk2-3.3.5 sample/testgtk/wmhints.rb
gtk2-3.3.4 sample/testgtk/wmhints.rb
gtk2-3.3.3 sample/testgtk/wmhints.rb
gtk2-3.3.2 sample/testgtk/wmhints.rb
gtk2-3.3.1 sample/testgtk/wmhints.rb
gtk2-3.3.0 sample/testgtk/wmhints.rb
gtk2-3.2.9-x64-mingw32 sample/testgtk/wmhints.rb
gtk2-3.2.9-x86-mingw32 sample/testgtk/wmhints.rb
gtk2-3.2.9 sample/testgtk/wmhints.rb
gtk2-3.2.8-x64-mingw32 sample/testgtk/wmhints.rb
gtk2-3.2.8-x86-mingw32 sample/testgtk/wmhints.rb
gtk2-3.2.8 sample/testgtk/wmhints.rb