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.
16 lines
321 B
Ruby
16 lines
321 B
Ruby
require 'tempfile'
|
|||
|
|||
module GtkTestUtils
|
|||
private
|
|||
def only_gtk_version(major, minor, micro=nil)
|
|||
micro ||= 0
|
|||
unless Gtk.check_version?(major, minor, micro)
|
|||
omit("Require GTK+ >= #{major}.#{minor}.#{micro}")
|
|||
end
|
|||
end
|
|||
|
|||
def only_x11
|
|||
omit("Only for X11 backend") unless Gdk.windowing_x11?
|
|||
end
|
|||
end
|