gtk3 sample: make a sample script gtk3 ready

gtk3/sample/misc/dialog.rb:

* modify a method call with a deprecated argument style
* modify a deprecated method name
* modify deprecated constant names