# Ruby-Gnome 2

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

[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:** 27

---

## [About Gtk::CellRendererCombo](https://www.ruby-forum.com/t/about-gtk-cellrenderercombo/118829)

<div class="topic-metadata">

**Author:** [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Replies:** 3\
**Last updated:** [November 2, 2007, 12:21am UTC](https://www.ruby-forum.com/t/about-gtk-cellrenderercombo/118829 "2007-11-02T00:21:25Z")

</div>

Someone have some example about how to use Gtk::CellRendererCombo please help me I dont know how fix the model for the TreeViewColumn that use this.

---

## [Dialgo.run](https://www.ruby-forum.com/t/dialgo-run/118645)

<div class="topic-metadata">

**Author:** [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 1:16am UTC](https://www.ruby-forum.com/t/dialgo-run/118645 "2007-10-31T01:16:49Z")

</div>

Can I override the run method? in the Gtk::Dialog (s) if yes how??

---

## [Account for ruby-gnome Wiki](https://www.ruby-forum.com/t/account-for-ruby-gnome-wiki/118553)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [October 28, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/account-for-ruby-gnome-wiki/118553 "2007-10-28T18:55:12Z")

</div>

Hi, Back at the time when I decided to go with ruby-gtk/gnome (which I never regretted) one of the most important factor in my decision was: The great Wiki of ruby-gnome2 It has helped me countless times, and I think…

---

## [Simple image viewer questions](https://www.ruby-forum.com/t/simple-image-viewer-questions/118487)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/simple-image-viewer-questions/118487 "2007-10-27T19:09:28Z")

</div>

Hi. I’d like to create a simple image viewer. At the moment it is enough to have one button and a widget that displays predefined images. I used glade-3 to create a skeleton. It works but when watching the memory co…

---

## [MozEmbed Archiving](https://www.ruby-forum.com/t/mozembed-archiving/118098)

<div class="topic-metadata">

**Author:** [@redroofgreentree](https://www.ruby-forum.com/u/redroofgreentree)\
**Replies:** 1\
**Last updated:** [October 23, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/mozembed-archiving/118098 "2007-10-23T22:06:46Z")

</div>

Hi all, I want to write a webbrowser that archives everything as I view it. (I.e. whenever it finishes loading a page, I wnat ti to do a “save everything as html” in a directory named $date-$time-$second-… So anywa…

---

## [CVS -\> Subversion](https://www.ruby-forum.com/t/cvs-subversion/118040)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [October 23, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/cvs-subversion/118040 "2007-10-23T15:00:52Z")

</div>

Hi, I’ve migrated the Ruby-GNOME2 repository to Subversion from CVS now. You can find how to access the Subversion repository at Ruby-GNOME 2 download | SourceForge.net Thanks, kou

---

## [Main\_iteration in threads lock up the main\_thread?](https://www.ruby-forum.com/t/main-iteration-in-threads-lock-up-the-main-thread/114889)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 15\
**Last updated:** [October 20, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/main-iteration-in-threads-lock-up-the-main-thread/114889 "2007-10-20T15:02:39Z")

</div>

hi, i don’t know if this is already covered in some docs, or am i just implementing something wrong. so i ask you about it. i attached a script, which hangs it’s Gtk.main\_loop (i guess) if you click it’s button. wh…

---

## [Libpango and sample text editor app](https://www.ruby-forum.com/t/libpango-and-sample-text-editor-app/117192)

<div class="topic-metadata">

**Author:** [@Chris\_Rohlf](https://www.ruby-forum.com/u/Chris_Rohlf)\
**Replies:** 3\
**Last updated:** [October 16, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/libpango-and-sample-text-editor-app/117192 "2007-10-16T14:27:32Z")

</div>

I am playing with the sample text editor app from the ruby/gtk2 site which you can find here: http://ruby-gnome2.sourceforge.jp/hiki.cgi?Simple+Text+Editor Im a beginner to ruby (6 months) and a beginning to ruby/gtk2…

---

## [Gtkmozembed multiple processes](https://www.ruby-forum.com/t/gtkmozembed-multiple-processes/117146)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [October 13, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/gtkmozembed-multiple-processes/117146 "2007-10-13T20:48:17Z")

</div>

I am trying to use a gtkmozembed widget in more than one process, but I get a Segmentation Fault when I try and start the second running. I have tried defining separate set\_profile\_path’s for each process, to no ava…

---

## [Gtkmozembed pango text](https://www.ruby-forum.com/t/gtkmozembed-pango-text/116892)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/gtkmozembed-pango-text/116892 "2007-10-10T22:36:11Z")

</div>

Hey, I am trying to extract the text from Gtk::Dialog alerts generated by gtkmozembed - for example; Javascript alerts, security warnings, etc. However, after I retrieve the pango layout from the Gtk::Dialog and call …

---

## [TreeModelFilter based TreeView Drag Dest](https://www.ruby-forum.com/t/treemodelfilter-based-treeview-drag-dest/116823)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 2:27am UTC](https://www.ruby-forum.com/t/treemodelfilter-based-treeview-drag-dest/116823 "2007-10-10T02:27:38Z")

</div>

So I’ve been struggling with this for a while, can someone help? Below is an example of what I’m trying to do, which is, drag items from one treeview into another which uses a filtered model. Basically, I’m trying to …

---

## [ListBox](https://www.ruby-forum.com/t/listbox/116514)

<div class="topic-metadata">

**Author:** [@alake](https://www.ruby-forum.com/u/alake)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/listbox/116514 "2007-10-06T17:04:17Z")

</div>

The attachment consists of an RDoc documented widget. Beside providing a simple list box, the documentation shows how to create a GTK widget. It is the result of help provided at Class to Widget - Ruby-Gnome 2 - Ruby…

---

## [Class to Widget](https://www.ruby-forum.com/t/class-to-widget/116366)

<div class="topic-metadata">

**Author:** [@alake](https://www.ruby-forum.com/u/alake)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/class-to-widget/116366 "2007-10-05T17:50:33Z")

</div>

I’d like to learn how to convert a class to a widget. Is there someone who can help me with this? The Ruby tutorial on this subject hasn’t been written yet. I’d like to write that section using listbox.rb as an exa…

---

## [Change color of the bar in progress bar](https://www.ruby-forum.com/t/change-color-of-the-bar-in-progress-bar/116413)

<div class="topic-metadata">

**Author:** [@fjimmy](https://www.ruby-forum.com/u/fjimmy)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 8:22am UTC](https://www.ruby-forum.com/t/change-color-of-the-bar-in-progress-bar/116413 "2007-10-05T08:22:14Z")

</div>

Hi All, I’m trying to change the color of bar in the progress bar but I couldn’t find a command for that. Anybody knows what is the command to change the color of the bar in the progress bar? Thanks, fjimmy

---

## [Checking types of objects in signal handlers](https://www.ruby-forum.com/t/checking-types-of-objects-in-signal-handlers/116197)

<div class="topic-metadata">

**Author:** [@dhstudio](https://www.ruby-forum.com/u/dhstudio)\
**Replies:** 2\
**Last updated:** [October 4, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/checking-types-of-objects-in-signal-handlers/116197 "2007-10-04T18:44:33Z")

</div>

in the example on http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AMenu it says: window.signal\_connect(“button\_press\_event”) do |widget, event| if event.kind\_of? Gdk::EventButton if (event.button == 3) menu.popu…

---

## [Dynamic menu odd display behaviour](https://www.ruby-forum.com/t/dynamic-menu-odd-display-behaviour/116305)

<div class="topic-metadata">

**Author:** [@dhstudio](https://www.ruby-forum.com/u/dhstudio)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/dynamic-menu-odd-display-behaviour/116305 "2007-10-04T12:52:01Z")

</div>

Hi, I want to add menu items dynamically to a menu when it is activated. The following code almost works. But the first time you hit the the File menu button, it looks like the area for the menu is drawn, but the it…

---

## [Main loop busier than expected](https://www.ruby-forum.com/t/main-loop-busier-than-expected/115742)

<div class="topic-metadata">

**Author:** [@Grant\_McLean](https://www.ruby-forum.com/u/Grant_McLean)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/main-loop-busier-than-expected/115742 "2007-10-02T18:51:52Z")

</div>

Hi All One of my colleagues has recently been using PowerTop to look at processes running on his machine to see which ones are generating ‘wakeups’ (which stop the processor idling in low power mode): Saving power wi…

---

## [Dynamically create buttons](https://www.ruby-forum.com/t/dynamically-create-buttons/115939)

<div class="topic-metadata">

**Author:** [@tobbyd](https://www.ruby-forum.com/u/tobbyd)\
**Replies:** 5\
**Last updated:** [October 2, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/dynamically-create-buttons/115939 "2007-10-02T12:47:19Z")

</div>

I am a beginner and I would like to create a loop that dynamically creates a number of normal buttons. ‘Button1’, ‘Button2’ etc. Then I would like to be able to reference the dynamically created buttons by typing ‘But…

---

## [Ruby-gnome2's effects on garbage collection time](https://www.ruby-forum.com/t/ruby-gnome2s-effects-on-garbage-collection-time/115828)

<div class="topic-metadata">

**Author:** [@Ian\_McIntosh](https://www.ruby-forum.com/u/Ian_McIntosh)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/ruby-gnome2s-effects-on-garbage-collection-time/115828 "2007-09-28T21:53:40Z")

</div>

Hi all, I’ve created two little demo applications that demonstrate how loading the ruby-gnome2 bindings (without even using them) seems to have an extremely detrimental effects on Ruby’s garbage collection time. ====…

---

## [Model Objects in Gtk::ComboBox](https://www.ruby-forum.com/t/model-objects-in-gtk-combobox/115611)

<div class="topic-metadata">

**Author:** [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/model-objects-in-gtk-combobox/115611 "2007-09-26T20:38:55Z")

</div>

Hi, i want store Model Objects in a GTK::ComboBox using ListStore I have to do : Gtk::ListStore.new(Object) or Gtk::ListStore.new(#ModelObjectClass#) Thanks

---

## [Problem with Gtk::FileChooserButton](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297)

<div class="topic-metadata">

**Author:** [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297 "2007-09-25T23:07:38Z")

</div>

I have got a major Problem with the Filechooserbutton widget, I have added it in a MessageDialog and it is running with no problems, but the new filechoose widget witch is generated after i clicked the Filechoserbutto…

---

## [GladeXML and derived widgets](https://www.ruby-forum.com/t/gladexml-and-derived-widgets/82603)

<div class="topic-metadata">

**Author:** [@Martin\_Nordholts](https://www.ruby-forum.com/u/Martin_Nordholts)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/gladexml-and-derived-widgets/82603 "2007-09-25T22:44:59Z")

</div>

Hello, I am porting a UI from gtkmm to ruby-gnome2. In the gtkmm version I create widgets derived from .glade file widgets as described here: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch23s03.html Is der…

---

## [Installing as non-root](https://www.ruby-forum.com/t/installing-as-non-root/82565)

<div class="topic-metadata">

**Author:** [@Emmanuel\_T](https://www.ruby-forum.com/u/Emmanuel_T)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/installing-as-non-root/82565 "2007-09-25T22:31:58Z")

</div>

Hello, I'm using ubuntu, but ubuntu like debian only has ruby-gnome2 0.15 in its repositories. I need to run 0.16; I could install from source, but I would like to avoid writing on my / partition myself (not to confu…

---

## [\[BUG\] gtk blocks reading from a file (0.16.0)](https://www.ruby-forum.com/t/bug-gtk-blocks-reading-from-a-file-0-16-0/80862)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [September 25, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/bug-gtk-blocks-reading-from-a-file-0-16-0/80862 "2007-09-25T22:30:19Z")

</div>

Hi, I came across an other problem with ruby-gnome 0.16. Reading files from the sysfs under linux seems impossible. Here is a short example: require “gtk2” sysdir = ‘/sys/class/video4linux’ sysentries = Dir.new sys…

---

## [Gdk::Pixbuf - red pixel?](https://www.ruby-forum.com/t/gdk-pixbuf-red-pixel/115283)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/gdk-pixbuf-red-pixel/115283 "2007-09-24T17:40:41Z")

</div>

Hi, is it possible to use a Gdk::Pixbuf which consists of i.e 10x10 pixels of a red colour? Inside DrawingArea this is easy, but I would like to use simple Pixbufs which have different colours

---

## [Focus a Gtk::Window?](https://www.ruby-forum.com/t/focus-a-gtk-window/115199)

<div class="topic-metadata">

**Author:** [@joachimgross](https://www.ruby-forum.com/u/joachimgross)\
**Replies:** 2\
**Last updated:** [September 22, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/focus-a-gtk-window/115199 "2007-09-22T15:37:27Z")

</div>

Hello, How can I focus an existing Gtk::Window inside my application? A little example: ######################## require ‘gtk2’ secondwindow = nil button = Gtk::Button.new(“Click me”) button.signal\_connect(“clicke…

---

## [How added new page in notebook?](https://www.ruby-forum.com/t/how-added-new-page-in-notebook/115159)

<div class="topic-metadata">

**Author:** [@fjimmy](https://www.ruby-forum.com/u/fjimmy)\
**Replies:** 2\
**Last updated:** [September 22, 2007, 2:17am UTC](https://www.ruby-forum.com/t/how-added-new-page-in-notebook/115159 "2007-09-22T02:17:01Z")

</div>

Hi All, Hi All, I’m a newbie at ruby GUI. I learning how to append a page in the notebook on the fly by attaching a function to a button. The idea is to add/delete a page everytime I press the button. By using this w…

---

## [Sourceview cursor doesn't show](https://www.ruby-forum.com/t/sourceview-cursor-doesnt-show/114551)

<div class="topic-metadata">

**Author:** [@alake](https://www.ruby-forum.com/u/alake)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/sourceview-cursor-doesnt-show/114551 "2007-09-14T21:50:52Z")

</div>

In initializing a SourceBuffer, the cursor isn’t initially visible. I’ve created an EditView class which is intended to encapsulate parts of the following Gtk classes: Table, ScrolledWindow, GtkSourceView, SourceBuffe…

---

## [Wiki spammed](https://www.ruby-forum.com/t/wiki-spammed/114504)

<div class="topic-metadata">

**Author:** [@nickrahn](https://www.ruby-forum.com/u/nickrahn)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/wiki-spammed/114504 "2007-09-13T15:03:20Z")

</div>

Hi, It seems that the of the web pages on the wiki has been spammed. I noticed it today as it looked wierd on the google search results page. I think it’s easliy fixed through the “admin” link in the top right corn…

---

## [Colouring text in a ComboBoxEntry](https://www.ruby-forum.com/t/colouring-text-in-a-comboboxentry/114407)

<div class="topic-metadata">

**Author:** [@dhstudio](https://www.ruby-forum.com/u/dhstudio)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/colouring-text-in-a-comboboxentry/114407 "2007-09-12T16:01:38Z")

</div>

Hi, I want to react to a user’s text entry by showing the text in red when certain conditions are not met. All that I try results in the text remaining black. Example nugget of code below, which doesn’t work for …

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

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