{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/581","labels_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/581/comments","events_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/581/events","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/581","id":108480890,"number":581,"title":"Gtk::Application command-line signal","user":{"login":"cedlemo","id":1135841,"avatar_url":"https://avatars.githubusercontent.com/u/1135841?v=3","gravatar_id":"","url":"https://api.github.com/users/cedlemo","html_url":"https://github.com/cedlemo","followers_url":"https://api.github.com/users/cedlemo/followers","following_url":"https://api.github.com/users/cedlemo/following{/other_user}","gists_url":"https://api.github.com/users/cedlemo/gists{/gist_id}","starred_url":"https://api.github.com/users/cedlemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedlemo/subscriptions","organizations_url":"https://api.github.com/users/cedlemo/orgs","repos_url":"https://api.github.com/users/cedlemo/repos","events_url":"https://api.github.com/users/cedlemo/events{/privacy}","received_events_url":"https://api.github.com/users/cedlemo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-26T17:14:51Z","updated_at":"2015-09-27T11:14:48Z","closed_at":"2015-09-27T07:24:16Z","body":"I started to write the main.rb and I have this kind of issue:\r\n\r\n```ruby\r\nrequire \"gtk3\"\r\n\r\nclass Demo < Gtk::Application\r\n  def initialize\r\n    super(\"org.gtk.Demo\", [:non_unique, :handles_command_line])\r\n\r\n    signal_connect \"startup\" do |application|\r\n      puts \"startup\"\r\n    end\r\n\r\n    signal_connect \"activate\" do |application|\r\n      puts \"activate\"\r\n    end\r\n\r\n    signal_connect \"command-line\" do |application, command_line|\r\n      puts \"cmd\"\r\n      puts command_line\r\n    end\r\n  end\r\nend\r\n\r\ndemo = Demo.new\r\n\r\ndemo.run([$PROGRAM_NAME] + ARGV)\r\n```\r\n\r\nthrow an error message:\r\n\r\n```\r\n/home/cedlemo/.gem/ruby/2.2.0/gems/gobject-introspection-3.0.6/lib/gobject-introspection/loader.rb: line 551\r\n   Gtk-DEBUG **:Connecting to session manager\r\nstartup\r\ncmd\r\n#<Gio::ApplicationCommandLine:0x000000028f0a78>\r\n/home/cedlemo/.gem/ruby/2.2.0/gems/gobject-introspection-3.0.6/lib/gobject-introspection/loader.rb:551:in `invoke': no implicit conversion from nil to integer\r\n\t from /home/cedlemo/.gem/ruby/2.2.0/gems/gobject-introspection-3.0.6/lib/gobject-introspection/loader.rb:551:in `block in define_method'\r\n\t from main.rb:41:in `<main>'\r\n\r\n```\r\n\r\nThis message disapears if I write this:\r\n\r\n```ruby\r\n    signal_connect \"command-line\" do |application, command_line|\r\n      puts \"cmd\"\r\n      puts command_line\r\n       1\r\n    end\r\n```"},"comment":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/comments/143543777","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/581#issuecomment-143543777","issue_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/581","id":143543777,"user":{"login":"cedlemo","id":1135841,"avatar_url":"https://avatars.githubusercontent.com/u/1135841?v=3","gravatar_id":"","url":"https://api.github.com/users/cedlemo","html_url":"https://github.com/cedlemo","followers_url":"https://api.github.com/users/cedlemo/followers","following_url":"https://api.github.com/users/cedlemo/following{/other_user}","gists_url":"https://api.github.com/users/cedlemo/gists{/gist_id}","starred_url":"https://api.github.com/users/cedlemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedlemo/subscriptions","organizations_url":"https://api.github.com/users/cedlemo/orgs","repos_url":"https://api.github.com/users/cedlemo/repos","events_url":"https://api.github.com/users/cedlemo/events{/privacy}","received_events_url":"https://api.github.com/users/cedlemo/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T11:14:48Z","updated_at":"2015-09-27T11:14:48Z","body":"Done https://bugzilla.gnome.org/show_bug.cgi?id=755692 .\r\n\r\n"}}