{"id":78548,"library":"gtk2","title":"GTK2","description":"Ruby/GTK2 is a Ruby binding of GTK+-2.x.","status":"active","version":"3.4.3","language":"ruby","source_language":null,"source_url":"https://github.com/ruby-gnome2/ruby-gnome2","tags":["gtk","gui","desktop","binding","ui"],"install":[{"cmd":"gem install gtk2","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'gtk2', '~> 3.4.3'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Gtk","correct":"require 'gtk2'"}],"quickstart":{"code":"require 'gtk2'\nGtk.init\nwindow = Gtk::Window.new\nwindow.signal_connect('destroy') { Gtk.main_quit }\nwindow.show_all\nGtk.main","lang":"ruby","description":"Create and display a basic GTK2 window."},"warnings":[{"fix":"Consider using gtk3 gem for modern GTK bindings.","message":"GTK2 is based on GTK+ 2.x, which is deprecated in favor of GTK3/GTK4.","severity":"gotcha","affected_versions":">= 0"}],"env_vars":null,"search_vec":"'-2':9 'bind':6,14 'desktop':13 'gtk':8,11 'gtk2':1 'gui':12 'rubi':5 'ruby/gtk2':2 'ui':15 'x':10","created_at":"2026-06-18T04:21:52.905658+00:00","updated_at":"2026-06-18T04:21:52.905658+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://ruby-gnome2.osdn.jp/","github":"https://github.com/ruby-gnome2/ruby-gnome2","docs":"http://www.rubydoc.info/gems/gtk2/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}