{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/370","labels_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/370/comments","events_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/370/events","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/370","id":67807263,"number":370,"title":"Gtk::TextBuffer.create_tag returns TrueClass","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":1,"created_at":"2015-04-11T16:58:38Z","updated_at":"2015-04-12T04:38:15Z","closed_at":"2015-04-12T04:34:35Z","body":"```ruby\r\n#!/usr/bin/env ruby\r\n\r\nrequire \"gtk3\"\r\n\r\ntb =Gtk::TextBuffer.new\r\ntag = tb.create_tag('bold', { 'weight' => Pango::WEIGHT_BOLD })\r\nputs tag.class\r\n```\r\nThis script returns this:\r\n\r\n    TrueClass\r\n\r\nI expected something else because  : \r\n\r\nthe C api is \r\n```c\r\nGtkTextTag *\r\ngtk_text_buffer_create_tag (GtkTextBuffer *buffer,\r\n                            const gchar *tag_name,\r\n                            const gchar *first_property_name,\r\n                            ...);\r\n```\r\n\r\nand in the file gtk3/lib/gtk3/text-buffer.rb line 85 : \r\n\r\n```ruby\r\n      if tags\r\n        start_iter = get_iter_at(:offset => start_offset)\r\n        tags.each do |tag|\r\n          tag = tag_table.lookup(tag) if tag.is_a?(String)\r\n          apply_tag(tag, start_iter, iter)\r\n        end\r\n      end\r\n```"},"comment":{"url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/comments/91988274","html_url":"https://github.com/ruby-gnome2/ruby-gnome2/issues/370#issuecomment-91988274","issue_url":"https://api.github.com/repos/ruby-gnome2/ruby-gnome2/issues/370","id":91988274,"user":{"login":"kou","id":27350,"avatar_url":"https://avatars.githubusercontent.com/u/27350?v=3","gravatar_id":"","url":"https://api.github.com/users/kou","html_url":"https://github.com/kou","followers_url":"https://api.github.com/users/kou/followers","following_url":"https://api.github.com/users/kou/following{/other_user}","gists_url":"https://api.github.com/users/kou/gists{/gist_id}","starred_url":"https://api.github.com/users/kou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kou/subscriptions","organizations_url":"https://api.github.com/users/kou/orgs","repos_url":"https://api.github.com/users/kou/repos","events_url":"https://api.github.com/users/kou/events{/privacy}","received_events_url":"https://api.github.com/users/kou/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T04:38:15Z","updated_at":"2015-04-12T04:38:15Z","body":"It's a bug. I've fixed it."}}