Questions tagged [ruby-gnome2]

Ruby-Gnome2 is a set of bindings for the GNOME 2.x and 3.x libraries to use from Ruby 2.0.0, 2.1 and 2.2.

From the documentation:

ruby-gnome2 is a set of bindings for the GNOME 2.x and 3.x libraries to use from Ruby 2.0.0, 2.1 and 2.2. It allows to make UI application in ruby using the direct access to Gtk2/Gtk3/Gnome2, so available modules are:

ruby-gtk2

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GTK2: GTK+ 2.10.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later

ruby-gtk3

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/GIO2: GIO 2.16.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later
  • Ruby/CairoGObject: cairo-gobject 1.12.10 or later
  • Ruby/GDK3: GTK+ 3.4.2 or later
  • Ruby/GTK3: GTK+ 3.4.2 or later

ruby-gnome2-all

  • ruby-gtk2 + ruby-gtk3
  • Ruby/RSVG: librsvg 2.8.0 or later
  • Ruby/Poppler: poppler-glib 0.8.0 or later
  • Ruby/VTE VTE 0.12.1 or later
  • Ruby/VTE3 VTE 0.37.0 or later
  • Ruby/GStreamer: GStreamer 1.0.0 or later
  • Ruby/GtkSourceView2: GtkSourceView 2.0.0 or later
  • Ruby/Clutter: Clutter 1.12.0 or later
  • Ruby/ClutterGTK: Clutter-GTK 1.2.0 or later
  • Ruby/ClutterGStreamer:Clutter-GStreamer 2.0.0 or later
  • Ruby/GtkSourceView3: GtkSourceView 3.4.2 or later
  • Ruby/VTE3: VTE 0.32.2 or later
  • Ruby/WebKitGTK: WebKitGTK+ 1.8.1 or later (for GTK+ 3)
  • Ruby/WebKitGTK2: WebKitGTK+ 1.8.1 or later (for GTK+ 2)
  • Ruby/WebKit2GTK: WebKitGTK+ 2.0.0 or later (for GTK+ 3)
19 questions
6
votes
2 answers

Packaging ruby gtk app

What is the least headache technique to package a gtk2/gtk3 app built with ruby for distribution as an executable, for windows, linux, macos? I could not find any guides or helpers to resolve this for ruby gtk. Nor the ruby-gnome gem comes with a…
arjun
  • 1,594
  • 16
  • 33
6
votes
1 answer

What is a resource path that have to be used with gtk_builder_new_from_resource?

I understand the what are the arguments for the functions gtk_builder_new_from_file or gtk_builder_new_from_string but I struggle a little to see what is a resource path like: GtkBuilder * gtk_builder_new_from_resource (const gchar…
cedlemo
  • 3,205
  • 3
  • 32
  • 50
3
votes
4 answers

Installing Ruby-Gnome2 on Ubuntu with RVM

I have RVM running and it is working brilliantly, but I can't seem to figure out how to install ruby-gnome2. I have followed the steps on this tutorial, which are: rvm use 1.9.1 # I use 1.9.1 which should work with ruby-gnome2 wget…
RyanScottLewis
  • 13,396
  • 16
  • 56
  • 84
3
votes
1 answer

Add overlay text to gstreamer video in Ruby

I have write this very simple video player that use gstreamer and gtk2 in Ruby. require 'gtk2' require 'gst' if ARGV.size != 1 puts "Usage: #{$0} " exit 0 end class VideoWidget < Gtk::DrawingArea def initialize(file) super() …
Pioz
  • 6,051
  • 4
  • 48
  • 67
3
votes
1 answer

Ruby-Gnome2 Notebook color

I'd like to be able to dynamically change the background color a notebook page in ruby-gnome2 after the program has run. I've only found ONE way of setting the background color: # Some page contents, for the sake of example box1 =…
KChaloux
  • 3,918
  • 6
  • 37
  • 52
2
votes
0 answers

view and animate SVG diagrams in Ruby GTK

I'm wondering if it's possible to view and then hopefully animate SVG diagrams in pure Ruby GTK. I'd prefer to use only the Gtk API. SVG is necessary. Thus I exclude a dedicated games library like Ruby2D or Gosu. I also found the excellent Oekaki…
JCLL
  • 5,379
  • 5
  • 44
  • 64
1
vote
0 answers

Adding a custom background color to button in Gtk2/Ruby gives it an orangish border

I'm trying to do some really basic UI stuff where I need to set a specific color as a background of a button. I'm working with Gtk2/Ruby and here some sample using which I'm seeing the issue on Windows 10. #!/usr/bin/env ruby require 'gtk2' #…
Rahul Vijay Dawda
  • 1,123
  • 3
  • 14
  • 36
1
vote
1 answer

Specifying fallback fonts with Pango markup for Gtk application

I am developing a dialog for my application using Ruby Gtk and have a requirement of displaying the text on the dialog in the Open Sans font. I have used Pango markup below to achieve this and seems to work as expected on my system.
Rahul Vijay Dawda
  • 1,123
  • 3
  • 14
  • 36
1
vote
1 answer

How to Get Text from a Gtk::Entry Widget Ruby

I have started to learn the ropes of Gtk in Ruby, and I have built this very simple program: require 'gtk2' include Gtk Gtk.init window = Window.new window.show window.set_title "// Edit //" window.signal_connect "destroy" do …
Logan Darby
  • 145
  • 16
1
vote
0 answers

Keyboard Shortcut doesn't work in ruby-gtk2 TextView

I'm practicing on a GUI based on Gtk and Ruby. I planned to make a little window that has a TextView and a button. When you input text in the TextView and press the button, it calls the Twitter gem's method and tweets to Twitter. After that…
Todoroki
  • 515
  • 4
  • 12
1
vote
1 answer

Has anyone ever written a clean MVC based ruby-gnome2 application?

Do you know of any serious and clean, (by clean I mean rails like) mvc based ruby GUI application with GTK. Actually, if there are any ruby gui applications that are clean and mvc based, I would be delighted, no matter what toolkit. What I am…
1
vote
0 answers

Need guidelines for developing GUI builder tool using ruby-gtk2

I am in process of developing custom GUI generator tool (its new GUI tool like glade) and to achieve that i am using ruby-gtk2. I am a newbie to the world of ruby and gtk, so i need a help in a problem which i am struck regarding adding background…
NVM
  • 11
  • 1
1
vote
2 answers

Inserting url link into Gtk::TextBuffer

I work on GUI project(http://smartdict.net) based on ruby-gnome2. I want to insert a web link into Gtk::TextBuffer element. How can I do that? It's a ruby project but solutions on C or Python would be useful as well. Thanks.
Sergey Potapov
  • 3,819
  • 3
  • 27
  • 46
0
votes
2 answers

how do I install ruby-glade-create-template ? Which is the gem that provides it?

I am on Ubuntu with ruby 1.9.1 and i am trying to build a ui with Glade. Glade outputs glade files (xml) which have to be translated to .rb . It's full of examples where "ruby-glade-create-template" is used to do this . Seems easy except it's 2 days…
Redoman
  • 3,059
  • 3
  • 34
  • 62
0
votes
2 answers

Stack level too deep error Ruby-Gnome2

I have a Gtk::TreeView with a Gtk::TreeModel and a Gtk::TreeModelFilter. The Tree Model is like this: category1 --> actual row of data category2 --> actual row of data I want to filter on the contents of @search_entry, but I want category1 to…
method
  • 782
  • 4
  • 10
1
2