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.4.3 sample/misc/gdkscreen.rb
gtk2-3.4.2 sample/misc/gdkscreen.rb
gtk2-3.4.1 sample/misc/gdkscreen.rb
gtk2-3.4.0 sample/misc/gdkscreen.rb
gtk2-3.3.9 sample/misc/gdkscreen.rb
gtk2-3.3.8 sample/misc/gdkscreen.rb
gtk2-3.3.7 sample/misc/gdkscreen.rb
gtk2-3.3.6 sample/misc/gdkscreen.rb
gtk2-3.3.5 sample/misc/gdkscreen.rb
gtk2-3.3.4 sample/misc/gdkscreen.rb
gtk2-3.3.3 sample/misc/gdkscreen.rb
gtk2-3.3.2 sample/misc/gdkscreen.rb
gtk2-3.3.1 sample/misc/gdkscreen.rb
gtk2-3.3.0 sample/misc/gdkscreen.rb
gtk2-3.2.9-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.2.9-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.2.9 sample/misc/gdkscreen.rb
gtk2-3.2.8-x64-mingw32 sample/misc/gdkscreen.rb
gtk2-3.2.8-x86-mingw32 sample/misc/gdkscreen.rb
gtk2-3.2.8 sample/misc/gdkscreen.rb