# Ruby-Gnome 2

**URL:** https://www.ruby-forum.com/c/desktop/ruby-gnome-2/12.md?page=10

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 11

---

## [Gtk::SourceView - how to disallow modifications? (read only)](https://www.ruby-forum.com/t/gtk-sourceview-how-to-disallow-modifications-read-only/211508)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 6, 2011, 5:10pm UTC](https://www.ruby-forum.com/t/gtk-sourceview-how-to-disallow-modifications-read-only/211508 "2011-09-06T17:10:50Z")

</div>

Hi, I sometimes want to read in a file into SourceView but disallow the user from making modifications (unless a check box is clicked, for instance.) Is this possible?

---

## [Border around a Button - coloured?](https://www.ruby-forum.com/t/border-around-a-button-coloured/211489)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 6, 2011, 4:36am UTC](https://www.ruby-forum.com/t/border-around-a-button-coloured/211489 "2011-09-06T04:36:52Z")

</div>

Is it possible to make a border in colours around a button easily? In CSS: border: 1px solid crimson; Hmm… In CSS it is really easy… (I don’t use GTK Themes.)

---

## [.signal\_emit but the button is not "clicked"](https://www.ruby-forum.com/t/signal-emit-but-the-button-is-not-clicked/211485)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 9:13pm UTC](https://www.ruby-forum.com/t/signal-emit-but-the-button-is-not-clicked/211485 "2011-09-05T21:13:41Z")

</div>

Hi, With: @button.signal\_emit(:clicked) We can simulate a button is clicked. But, is there a way to also simulate an on\_hover event on that button? With my mouse, when I hover over the button it changes the highligh…

---

## [Need help with tree cursor](https://www.ruby-forum.com/t/need-help-with-tree-cursor/211444)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 4, 2011, 3:01pm UTC](https://www.ruby-forum.com/t/need-help-with-tree-cursor/211444 "2011-09-04T15:01:42Z")

</div>

Hi, a question here How do I move cursor in tree view (with liststore as model) without using mouse click or arrow? I mean something like press F1 and it moves to first row? I can’t get it to work especially if tree…

---

## [User data in signal callbacks backwards?](https://www.ruby-forum.com/t/user-data-in-signal-callbacks-backwards/211149)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [August 31, 2011, 4:08pm UTC](https://www.ruby-forum.com/t/user-data-in-signal-callbacks-backwards/211149 "2011-08-31T16:08:58Z")

</div>

Hello, I wrote a demo with some treeview to prototype list behaviour but there is one surprising feature of ruby-gtk2 which I found: In C you are supposed to get this callback: The “changed” signal void …

---

## [Ruby-Gnome Wiki](https://www.ruby-forum.com/t/ruby-gnome-wiki/211208)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [August 29, 2011, 4:02pm UTC](https://www.ruby-forum.com/t/ruby-gnome-wiki/211208 "2011-08-29T16:02:53Z")

</div>

Hi! I am trying to update the wiki a bit with new information here and there. When I edit a page, I get a “Internal Server Error”, but the editing still seems to work fine. Perhaps the redirect to the new page is not …

---

## [Gdk::Window.create\_cairo\_context missing?](https://www.ruby-forum.com/t/gdk-window-create-cairo-context-missing/182993)

<div class="topic-metadata">

**Author:** [@analogue40](https://www.ruby-forum.com/u/analogue40)\
**Replies:** 4\
**Last updated:** [August 27, 2011, 9:03pm UTC](https://www.ruby-forum.com/t/gdk-window-create-cairo-context-missing/182993 "2011-08-27T21:03:48Z")

</div>

Hi all - Since about Ruby-GNOME2 0.19.0 or so, the create\_cairo\_context method no longer exists and aborts my program (which relies on it, there is no point to my program without it). According to gdk documentation …

---

## [Gtk::FileFilter.add\_custom](https://www.ruby-forum.com/t/gtk-filefilter-add-custom/211031)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [August 25, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/gtk-filefilter-add-custom/211031 "2011-08-25T14:56:45Z")

</div>

If I read the doc write this should work… filefilter1 = Gtk::FileFilter.new filefilter1.add\_custom(Gtk::FileFilter::FILENAME) do |c,filename,u,d,m| File.directory? f end filechooserwidget1.add\_filter filefilter1 and…

---

## [Gtk::SourceView still supported?](https://www.ruby-forum.com/t/gtk-sourceview-still-supported/211088)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 25, 2011, 2:24pm UTC](https://www.ruby-forum.com/t/gtk-sourceview-still-supported/211088 "2011-08-25T14:24:25Z")

</div>

\_editor.rb:485:in text\_field': undefined methodset\_show\_line\_markers’ for #\<Gtk::SourceView:0x7f3e4ec12ff8 ptr=0x262c030\> (NoMethodError) I have a few problems getting SourceView to work. (a) Is one of you using it wi…

---

## [Refresh combobox context](https://www.ruby-forum.com/t/refresh-combobox-context/210819)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 23, 2011, 6:47am UTC](https://www.ruby-forum.com/t/refresh-combobox-context/210819 "2011-08-23T06:47:53Z")

</div>

How to refresh combobox context? I want to load a file which it have lots of header on each column, I put each header into combobox, let someone to select which header column does he want to parser. When I re-select…

---

## [Copy/Paste via EventBox (and an image)](https://www.ruby-forum.com/t/copy-paste-via-eventbox-and-an-image/210911)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 20, 2011, 12:22pm UTC](https://www.ruby-forum.com/t/copy-paste-via-eventbox-and-an-image/210911 "2011-08-20T12:22:30Z")

</div>

Let’s say I have an image. I put this into an EventBox. image = Gtk::Image.new eventbox = Gtk::EventBox.new eventbox.add image Now when I want to click on this image, I want to assign the clipboard to the string: “…

---

## [Using colours in Gtk::Entry](https://www.ruby-forum.com/t/using-colours-in-gtk-entry/210910)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [August 20, 2011, 11:28am UTC](https://www.ruby-forum.com/t/using-colours-in-gtk-entry/210910 "2011-08-20T11:28:23Z")

</div>

Hi, I am writing a little wrapper over a commandline script. The input can be something like: extract audio | upload to www.foobar.com My question is: Is there an easy way to make the ‘|’ character red when a user i…

---

## [rubyWax 0.11.05 audio player](https://www.ruby-forum.com/t/rubywax-0-11-05-audio-player/206438)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 19, 2011, 12:44pm UTC](https://www.ruby-forum.com/t/rubywax-0-11-05-audio-player/206438 "2011-08-19T12:44:53Z")

</div>

rubyWax 0.11.05 alpha an audio player for folks who miss their vinyl… (see screenshot) requires gstreamer and gtk2 fixes in this release: it should actually work now! (sorry about the last one) settings manager tig…

---

## [VTE - question about .feed](https://www.ruby-forum.com/t/vte-question-about-feed/210366)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [August 19, 2011, 11:08am UTC](https://www.ruby-forum.com/t/vte-question-about-feed/210366 "2011-08-19T11:08:08Z")

</div>

Hello, I use .feed on VTE Terminal: http://ruby-gnome2.sourceforge.jp/hiki.cgi?Vte%3A%3ATerminal#feed Example: vte\_terminal.feed ‘ata’ I use this for a VTE where I right click on the window, and the .feed string ge…

---

## [Image with emblem?](https://www.ruby-forum.com/t/image-with-emblem/210740)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [August 17, 2011, 6:29pm UTC](https://www.ruby-forum.com/t/image-with-emblem/210740 "2011-08-17T18:29:54Z")

</div>

Hello, Is there a widget or simple combination of widgets that would display an image with an emblem? I see this used in many GTK applications but can’t find any widget for it. I will need a few buttons that could b…

---

## [Error installing gtk2 under rvm (again.)](https://www.ruby-forum.com/t/error-installing-gtk2-under-rvm-again/210017)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [August 4, 2011, 2:10pm UTC](https://www.ruby-forum.com/t/error-installing-gtk2-under-rvm-again/210017 "2011-08-04T14:10:49Z")

</div>

hey folks, well, i’m eager to try out gtk2 1.0, but i still get errors trying to install - not sure what the problem is. here’s what i get with a fresh install of 1.9.2 patch 180 under rvm on ubuntu 10.4 lucid: jk@j…

---

## [Which widget?](https://www.ruby-forum.com/t/which-widget/210242)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 3, 2011, 5:12pm UTC](https://www.ruby-forum.com/t/which-widget/210242 "2011-08-03T17:12:48Z")

</div>

please see my attachment ,which widget the region1,region2 is? how to make it??

---

## [Glade, Gtk::Builder and GtkTreeView](https://www.ruby-forum.com/t/glade-gtk-builder-and-gtktreeview/210125)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 1, 2011, 3:53pm UTC](https://www.ruby-forum.com/t/glade-gtk-builder-and-gtktreeview/210125 "2011-08-01T15:53:40Z")

</div>

This is my first time using Ruby-Gnome2, so please be gentle… I am trying to use a GtkTreeView I created in glade. I created the hierarchy in glade and would rather do this way than create the columns in ruby code. I…

---

## [EventBox key press event](https://www.ruby-forum.com/t/eventbox-key-press-event/208770)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 1, 2011, 12:42pm UTC](https://www.ruby-forum.com/t/eventbox-key-press-event/208770 "2011-08-01T12:42:24Z")

</div>

Anyone have any ideas why this will not work been working and googling for hours It works on Gtk::Window require ‘gtk2’ w = Gtk::Window.new eb = Gtk::EventBox.new w.add(eb) eb.add\_events(Gdk::Event::ALL\_EVENTS\_MA…

---

## [rubyWax 0.8.11](https://www.ruby-forum.com/t/rubywax-0-8-11/210104)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 1, 2011, 12:22pm UTC](https://www.ruby-forum.com/t/rubywax-0-8-11/210104 "2011-08-01T12:22:04Z")

</div>

rubyWax 0.8.11 an audio player for folks who miss their vinyl… (screenshot attached) this version is cleaned up a bit - unfortunately still only tested on ubuntu 10.04 with ruby 1.8.7 and gtk2 0.19.3… requires gtk2…

---

## [\[ANN\] Ruby-GNOME2 1.0.0](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-0-0/209409)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 24, 2011, 2:02am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-0-0/209409 "2011-07-24T02:02:39Z")

</div>

Hi, The Ruby-GNOME2 project released Ruby-GNOME2 1.0.0: http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20110713\_1 This is the first major release!!! Yey! The first release, 0.1, was released at 2002-11-23. (9years a…

---

## [Gtk2 v1.0.0 update issue on Win7/MinGW](https://www.ruby-forum.com/t/gtk2-v1-0-0-update-issue-on-win7-mingw/209406)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [July 13, 2011, 3:59pm UTC](https://www.ruby-forum.com/t/gtk2-v1-0-0-update-issue-on-win7-mingw/209406 "2011-07-13T15:59:11Z")

</div>

It looks like I’m trying to update before 1.0.0 has been officially released and before the x86-mingw32 binary gems are available (or things are still resolving with S3 as per @gemcutter recent tweets), but just in c…

---

## [Problem with using GLib::File](https://www.ruby-forum.com/t/problem-with-using-glib-file/207937)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [June 29, 2011, 2:15pm UTC](https://www.ruby-forum.com/t/problem-with-using-glib-file/207937 "2011-06-29T14:15:06Z")

</div>

Hello I tried to put together a test application that opens a file. Unfortunately, the line with GLib::File.read returns: fdialog.rb:16:in \`filechooserbutton1\_file\_set\_cb’: uninitialized constant GLib::File I use r…

---

## [Hicolor warning messages](https://www.ruby-forum.com/t/hicolor-warning-messages/208783)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 27, 2011, 6:12am UTC](https://www.ruby-forum.com/t/hicolor-warning-messages/208783 "2011-06-27T06:12:28Z")

</div>

I used gtk2 to create GUI interface, but it show some warning message about ‘hicolor’ can’t find and I should install it? it show a address Index of /releases But how to install the icon-theme on windows? Thanks.

---

## [0.90.9 release tarball incomplete?](https://www.ruby-forum.com/t/0-90-9-release-tarball-incomplete/208560)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [June 23, 2011, 2:41pm UTC](https://www.ruby-forum.com/t/0-90-9-release-tarball-incomplete/208560 "2011-06-23T14:41:38Z")

</div>

Hello, I was trying to get gio working and after some searching concluded that ruby-gnome2 0.19.3 packaged in Debian does not have that. I downloaded ruby-gnome2-all-0.90.9 and while the readme mentions libraries lik…

---

## [Printing problem](https://www.ruby-forum.com/t/printing-problem/208595)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 7:24am UTC](https://www.ruby-forum.com/t/printing-problem/208595 "2011-06-22T07:24:16Z")

</div>

Hi, I am making a POS software for my own use using Ruby-Gtk and now I’m in trouble with printing I need to print to 9.5x5.5in continuous form paper with Epson LX-300+ I use this sample I found on Gtk::Print\* sample …

---

## [GTK theme plugins?](https://www.ruby-forum.com/t/gtk-theme-plugins/208306)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 14, 2011, 9:06pm UTC](https://www.ruby-forum.com/t/gtk-theme-plugins/208306 "2011-06-14T21:06:47Z")

</div>

I’ve recently started investigating the gtk2 gem with Ruby 1.9.2 on Windows using the RubyInstaller build recipes. It was a pleasant install experience and I think it’s clever that you’ve bundled the dependencies unde…

---

## [\[ANN\] Ruby-GNOME2 0.90.9](https://www.ruby-forum.com/t/ann-ruby-gnome2-0-90-9/208143)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 11, 2011, 6:20am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-0-90-9/208143 "2011-06-11T06:20:53Z")

</div>

Hi, The Ruby-GNOME2 project released Ruby-GNOME2 0.90.9: Download ruby-gtk2-0.90.9.tar.gz (Ruby-GNOME 2) Download ruby-gnome2-all-0.90.9.tar.gz (Ruby-GNOME 2) === Install % gem install gtk2 === Summary A bug fix r…

---

## [Two things on documentation](https://www.ruby-forum.com/t/two-things-on-documentation/200809)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 21\
**Last updated:** [June 4, 2011, 10:00pm UTC](https://www.ruby-forum.com/t/two-things-on-documentation/200809 "2011-06-04T22:00:32Z")

</div>

I would like for my GLib::File documentation to be put on the homepage. It’s been almost two months now. I am sick and tired of seeing Internal Server Error when I try to browse the documentation. Is anyone beside m…

---

## [Ruby gnome 2 and signal\_connect method](https://www.ruby-forum.com/t/ruby-gnome-2-and-signal-connect-method/226221)

<div class="topic-metadata">

**Author:** [@silkmoth](https://www.ruby-forum.com/u/silkmoth)\
**Replies:** 3\
**Last updated:** [May 7, 2011, 8:14pm UTC](https://www.ruby-forum.com/t/ruby-gnome-2-and-signal-connect-method/226221 "2011-05-07T20:14:48Z")

</div>

Hi, I am writting a little script for displaying a list of icons and when i clic on one of the icon it should return the absolute path of the icon. So i create a windows widget which contain a table widget. In each ce…

[Previous page](https://www.ruby-forum.com/c/desktop/ruby-gnome-2/12.md?page=9)

[Next page](https://www.ruby-forum.com/c/desktop/ruby-gnome-2/12.md?page=11)
