{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/381","labels_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/381/comments","events_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/381/events","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/381","id":70825882,"number":381,"title":"define_deprecated_method_by_hash_args recursive stack to deep","user":{"login":"eumario","id":63555,"avatar_url":"https://avatars.githubusercontent.com/u/63555?v=3","gravatar_id":"","url":"https://api.github.com/users/eumario","html_url":"https://github.com/eumario","followers_url":"https://api.github.com/users/eumario/followers","following_url":"https://api.github.com/users/eumario/following{/other_user}","gists_url":"https://api.github.com/users/eumario/gists{/gist_id}","starred_url":"https://api.github.com/users/eumario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eumario/subscriptions","organizations_url":"https://api.github.com/users/eumario/orgs","repos_url":"https://api.github.com/users/eumario/repos","events_url":"https://api.github.com/users/eumario/events{/privacy}","received_events_url":"https://api.github.com/users/eumario/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-25T00:03:16Z","updated_at":"2015-04-25T21:49:24Z","closed_at":"2015-04-25T03:51:26Z","body":"I have run into an issue when attempting to develop my App and library around Gtk3 (GI Interface), where when attempting to create a MessageDialog, it fails to run, with an Stack Level To deep exception, when executing new on Gtk::MessageDialog.\r\n\r\nA Minimal Example that Reproduces the exception:\r\n\r\n```ruby\r\nrequire 'gtk3'\r\n\r\nwin = Gtk::Window.new\r\nwin.title = \"Test Recursion Bug\"\r\nwin.signal_connect(\"destroy\") { Gtk.main_quit }\r\n\r\nbtn = Gtk::Button.new(:label => \"Run Message Dialog\")\r\nbtn.signal_connect(\"clicked\") do\r\n        dialog = Gtk::MessageDialog.new(\r\n                :parent => win,\r\n                :flags => [:modal,:destroy_with_parent],\r\n                :type => :question,\r\n                :buttons_type => :none,\r\n                :message => \"This is a test message to see if we get an exception.\")\r\n\r\n        dialog.add_button(\"_Cancel\",Gtk::ResponseType::CANCEL)\r\n        dialog.add_button(\"_No\",Gtk::ResponseType::NO)\r\n        dialog.add_button(\"_Yes\",Gtk::ResponseType::YES)\r\n\r\n        dialog.title = \"Test Recursion bug\"\r\n        dlgRet = dialog.run\r\n        if dlgRet == Gtk::ResponseType::YES\r\n                puts \"1\"\r\n        elsif dlgRet == Gtk::ResponseType::NO\r\n                puts \"0\"\r\n        else dlgRet == Gtk::ResponseType::CANCEL\r\n                puts \"-1\"\r\n        end\r\n        dialog.destroy\r\nend\r\n\r\nwin.add(btn)\r\nwin.show_all\r\n\r\nGtk.main\r\n```\r\n\r\nThis is from Ruby-Gnome2 git repo, GI Interface.\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/comments/96284594","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/381#issuecomment-96284594","issue_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/381","id":96284594,"user":{"login":"eumario","id":63555,"avatar_url":"https://avatars.githubusercontent.com/u/63555?v=3","gravatar_id":"","url":"https://api.github.com/users/eumario","html_url":"https://github.com/eumario","followers_url":"https://api.github.com/users/eumario/followers","following_url":"https://api.github.com/users/eumario/following{/other_user}","gists_url":"https://api.github.com/users/eumario/gists{/gist_id}","starred_url":"https://api.github.com/users/eumario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eumario/subscriptions","organizations_url":"https://api.github.com/users/eumario/orgs","repos_url":"https://api.github.com/users/eumario/repos","events_url":"https://api.github.com/users/eumario/events{/privacy}","received_events_url":"https://api.github.com/users/eumario/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T21:49:24Z","updated_at":"2015-04-25T21:49:24Z","body":"Great work.  Though, just to comment, that you forgot to do the symbol or_all part with the flags, and such, [:modal,:destroy_with_parent] = Gtk::DialogFlags::MODAL && Gtk::DialogFlags::DESTROY_WITH_PARENT"}}