Sha256: 04387cb9afc53d74f752152f3791cd3afe41e5e867799119009887fbd7b20a71

Contents?: true

Size: 694 Bytes

Versions: 184

Compression:

Stored size: 694 Bytes

Contents

=begin
  gdkscreen.rb - Gdk::Screen sample script.

  Copyright (C) 2004-2006  Masao Mutoh
  This program is licenced under the same licence as Ruby-GNOME2.

  $Id: gdkscreen.rb,v 1.3 2006/06/17 13:18:12 mutoh Exp $
=end

require 'gtk2'

screen = Gdk::Screen.default
settings_map = [
  "gtk-double-click-time",
  "gtk-dnd-drag-threshold",
  "gtk-can-change-accels",
  "gtk-color-palette",
  "gtk-font-name",
  "gtk-icon-sizes",
  "gtk-key-theme-name",
  "gtk-toolbar-style",
  "gtk-toolbar-icon-size",
  "gtk-im-preedit-style",
  "gtk-im-status-style",
  "gtk-cursor-blink",
  "gtk-cursor-blink-time",
  "gtk-theme-name" 
]

settings_map.each do |v|
  puts "#{v}: #{screen.get_setting(v)}"
end

Version data entries

184 entries across 184 versions & 1 rubygems

Version Path
gtk2-3.0.7-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.7 sample/misc/gdkscreen.rb
gtk2-3.0.6-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.6-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.6 sample/misc/gdkscreen.rb
gtk2-3.0.5-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.5-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.5 sample/misc/gdkscreen.rb
gtk2-3.0.4-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.4-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.4 sample/misc/gdkscreen.rb
gtk2-3.0.3-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.3-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.3 sample/misc/gdkscreen.rb
gtk2-3.0.2-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.2-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.2 sample/misc/gdkscreen.rb
gtk2-3.0.1-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.1-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.0.1 sample/misc/gdkscreen.rb