Class: Gtk::PrintSettings

Inherits:
Object
  • Object
show all
Includes:
Marshal
Defined in:
lib/Gtk.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(serialized) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/Gtk.rb', line 56

def deserialize(serialized)
	if serialized
		begin
			psettings=load(serialized)
		rescue =>err
			edebug("loading print settings: #{err}","printing","error")
		end
		if psettings
			psettings.each{|v|
				set(v[0].to_s,v[1])
			}
		end
	end
	self
end

#serializeObject



52
53
54
# File 'lib/Gtk.rb', line 52

def serialize
	dump(to_a)
end