This repository has been archived on 2021-09-15 . You can view files and clone it, but cannot push or open issues or pull requests.
33 lines
694 B
Ruby
33 lines
694 B
Ruby
=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
|