# Ruby-Gnome 2

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

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

---

## [Justifying labels inside a table](https://www.ruby-forum.com/t/justifying-labels-inside-a-table/95187)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 5\
**Last updated:** [May 4, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/justifying-labels-inside-a-table/95187 "2009-05-04T13:45:24Z")

</div>

Hi, I have a bunch of Gtk::Labels inside a Gtk::Table. I want all the labels on the left hand side of the table to be left-justified. In other words, all the left labels’ text should be against the left border of t…

---

## [Ruby 1.9.1 compatibility, again](https://www.ruby-forum.com/t/ruby-1-9-1-compatibility-again/166597)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-compatibility-again/166597 "2009-05-04T12:15:09Z")

</div>

Hi all, this patch against svn head allowed me to build Ruby-GNOME2 with Ruby 1.9.1. I have played around with it a bit in irb - simple windows and buttons and stuff - and it seems to work. Is that likely to be it, o…

---

## [Is the package in Ubuntu Jaunty really going to be 0.17.0?](https://www.ruby-forum.com/t/is-the-package-in-ubuntu-jaunty-really-going-to-be-0-17-0/165968)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 5\
**Last updated:** [April 29, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/is-the-package-in-ubuntu-jaunty-really-going-to-be-0-17-0/165968 "2009-04-29T12:30:48Z")

</div>

Shouldn’t it be 0.18.1? Ubuntu – Error I thought there were serious issues with 0.17 that have since been fixed. Not to mention the inclusion of gtksourceview2. best, Dan Daniel Benjamin Lucraft www.daniellucraft.…

---

## [Ruby-Gnome2-0.18 One-Click Installer for Windows](https://www.ruby-forum.com/t/ruby-gnome2-0-18-one-click-installer-for-windows/163645)

<div class="topic-metadata">

**Author:** [@Hidehito\_O](https://www.ruby-forum.com/u/Hidehito_O)\
**Replies:** 7\
**Last updated:** [April 28, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-0-18-one-click-installer-for-windows/163645 "2009-04-28T12:07:26Z")

</div>

Hello. I’m working with Ruby-Gnome2-0.18.1 one-click installer for Windows, using ruby-gnome2/branches/0.18 and win32installer/trunk. I’ve succeeded in building an installer package, but my build process requires som…

---

## [(debian,eclipse) GUI created with glade does not appear](https://www.ruby-forum.com/t/debian-eclipse-gui-created-with-glade-does-not-appear/166411)

<div class="topic-metadata">

**Author:** [@rvork](https://www.ruby-forum.com/u/rvork)\
**Replies:** 11\
**Last updated:** [April 25, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/debian-eclipse-gui-created-with-glade-does-not-appear/166411 "2009-04-25T22:46:37Z")

</div>

hi, some informations: I have debian lenny, with gnome I have eclipse + the plugin DLTK (for ruby) I have installed the packages ruby1.8, ruby1.8-dev, ruby-gnome2, libglade-2, glade-gnome and glade-3. I thought I ha…

---

## [(debian,eclipse) add a button to a window created with glade](https://www.ruby-forum.com/t/debian-eclipse-add-a-button-to-a-window-created-with-glade/166459)

<div class="topic-metadata">

**Author:** [@rvork](https://www.ruby-forum.com/u/rvork)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/debian-eclipse-add-a-button-to-a-window-created-with-glade/166459 "2009-04-25T16:26:15Z")

</div>

hello, I would like to create a window with glade, import it in a ruby project, and add a buton to it but from eclipse. here it is an example: #!/usr/bin/env ruby require ‘libglade2’ require ‘gtk2’ class MonAppl…

---

## [Managing segfaults with gecko/webkit](https://www.ruby-forum.com/t/managing-segfaults-with-gecko-webkit/166056)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 2\
**Last updated:** [April 24, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/managing-segfaults-with-gecko-webkit/166056 "2009-04-24T12:57:56Z")

</div>

Hi Folks, I’ve been fighting this issue for some time now, and I’ve been reading all of the recent posts regarding how Ruby’s threading model can fight with other “real” threads due to stack corruption. However, I se…

---

## [Automate a button click](https://www.ruby-forum.com/t/automate-a-button-click/166322)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 11:26am UTC](https://www.ruby-forum.com/t/automate-a-button-click/166322 "2009-04-24T11:26:45Z")

</div>

Anyone know what’s the matter with this code to automate a button click? def make\_event\_button(window, x, y, button, type) case type when :press event\_button = Gdk::EventButton.new(Gdk::Event::BUTTON\_PRESS) when :re…

---

## [Crash in GtkFileChooser](https://www.ruby-forum.com/t/crash-in-gtkfilechooser/166360)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 9:58am UTC](https://www.ruby-forum.com/t/crash-in-gtkfilechooser/166360 "2009-04-24T09:58:58Z")

</div>

This code works 99% of the time, but sometimes when the Chooser is deep in a directory and I press “Alt+Up” repeatedly, it will crash my application within dialog.run giving this error: /home/dan/projects/redcar/bin/……

---

## [BUG segfault in Gdk::Pixbuf](https://www.ruby-forum.com/t/bug-segfault-in-gdk-pixbuf/166220)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/bug-segfault-in-gdk-pixbuf/166220 "2009-04-23T12:05:58Z")

</div>

Hi, sometimes pixbuf = Gdk::Pixbuf.new path\_to\_my\_svg, size segfaults. The code in my special case is: icon\_size = \*Gtk::IconSize.lookup (Gtk::IconSize::SMALL\_TOOLBAR) pixbuf = Gdk::Pixbuf.new PIXMAP\_PATH + ‘/’ + it…

---

## [How to use Pango::Attribute stuff?](https://www.ruby-forum.com/t/how-to-use-pango-attribute-stuff/161521)

<div class="topic-metadata">

**Author:** [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Replies:** 4\
**Last updated:** [April 23, 2009, 8:36am UTC](https://www.ruby-forum.com/t/how-to-use-pango-attribute-stuff/161521 "2009-04-23T08:36:03Z")

</div>

Hi, With C or pygtk, I could set a foreground attribute with index. But as it turns out, in ruby-gtk, I cannot, since there is no way to change the index. So, any idea how to make part of the whole text in another c…

---

## [BUG in Gtk::Style](https://www.ruby-forum.com/t/bug-in-gtk-style/166063)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/bug-in-gtk-style/166063 "2009-04-21T15:11:53Z")

</div>

Hi, it is not possible to pass nil as the detail-argument to many of the paint\_\* methods. The documentation claims that it is possible and also the C version allows to use NULL for this argument. In gtk/src/rbgtkstyl…

---

## [Buffer updates taking too long](https://www.ruby-forum.com/t/buffer-updates-taking-too-long/164081)

<div class="topic-metadata">

**Author:** [@rpflaum](https://www.ruby-forum.com/u/rpflaum)\
**Replies:** 4\
**Last updated:** [April 19, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/buffer-updates-taking-too-long/164081 "2009-04-19T16:55:23Z")

</div>

I have searched around and I am not really finding an answer to what I need. My program has 10-15 telnet session opened to a bunch of fibre channel switch command lines. The gui has an output buffer for each switch I …

---

## [How do I customize 'word ends' for TextView / add underscore to selection for double click?](https://www.ruby-forum.com/t/how-do-i-customize-word-ends-for-textview-add-underscore-to-selection-for-double-click/165592)

<div class="topic-metadata">

**Author:** [@chaschev](https://www.ruby-forum.com/u/chaschev)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/how-do-i-customize-word-ends-for-textview-add-underscore-to-selection-for-double-click/165592 "2009-04-17T12:35:40Z")

</div>

Hi, I tried doing it with the code below and for the example from the distribution (pango/samples/break.rb) it worked: underscore was then similar to an ordinary letter. I mean word\_end for underscore became true. Bu…

---

## [VTE and right-mouse click -\> Menu](https://www.ruby-forum.com/t/vte-and-right-mouse-click-menu/165300)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/vte-and-right-mouse-click-menu/165300 "2009-04-11T17:29:32Z")

</div>

I am playing around with Ruby Vte right now, and one question that I have is if it is possible to open a context menu (with options I could fill up) when someone right clicks with his mouse on the Vte terminal?

---

## [Name parameter to rbgerr\_define\_gerror should be const gchar \*](https://www.ruby-forum.com/t/name-parameter-to-rbgerr-define-gerror-should-be-const-gchar/164647)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 1\
**Last updated:** [April 4, 2009, 2:54am UTC](https://www.ruby-forum.com/t/name-parameter-to-rbgerr-define-gerror-should-be-const-gchar/164647 "2009-04-04T02:54:05Z")

</div>

The name parameter to rbgerr\_define\_gerror should be const gchar \*, not gchar \*. (I’m still trying to remember what my password was for my account so that I can apply CVS patches again.)

---

## [GIO: How to deal with blocks as async callbacks](https://www.ruby-forum.com/t/gio-how-to-deal-with-blocks-as-async-callbacks/164000)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 5\
**Last updated:** [March 28, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/gio-how-to-deal-with-blocks-as-async-callbacks/164000 "2009-03-28T19:22:32Z")

</div>

OK, so if the user passes a block to an \*\_async method it gets called when the GAsyncReadyCallback is called. However, if any errors are reported from the \*\_finish function they get raised. My question is how to dea…

---

## [Question about G\_CHILD\_ADD/G\_CHILD\_REMOVE](https://www.ruby-forum.com/t/question-about-g-child-add-g-child-remove/164003)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/question-about-g-child-add-g-child-remove/164003 "2009-03-27T15:00:09Z")

</div>

Am I right in understanding that if you have code like \[GFile.new(‘a’), GFile.new(‘b’).each do |file| file.read\_async{ |contents| p contents } end will be fine even though #read\_async is using code like G\_CHILD\_ADD(…

---

## [N\_children cannot be used to get number of toplevel nodes](https://www.ruby-forum.com/t/n-children-cannot-be-used-to-get-number-of-toplevel-nodes/163875)

<div class="topic-metadata">

**Author:** [@mazwak](https://www.ruby-forum.com/u/mazwak)\
**Replies:** 4\
**Last updated:** [March 26, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/n-children-cannot-be-used-to-get-number-of-toplevel-nodes/163875 "2009-03-26T15:12:59Z")

</div>

Hi I’m trying to get the numbers of rows in my liststore, but it seems I lack a functionality. In C, you can call : gtk\_tree\_model\_iter\_n\_children(GtkTreeModel \*tree\_model, GtkTreeIter \*iter) with a NULL pointer to…

---

## [GIO: Anyone have any suggestions on how to implement GMemoryOutputStream?](https://www.ruby-forum.com/t/gio-anyone-have-any-suggestions-on-how-to-implement-gmemoryoutputstream/163742)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 1\
**Last updated:** [March 26, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/gio-anyone-have-any-suggestions-on-how-to-implement-gmemoryoutputstream/163742 "2009-03-26T14:48:46Z")

</div>

How should I implement GMemoryOutputStream? I want to be able to realloc it and such and it would also be sweet if getting the data doesn’t alloc a new Ruby string. But how do I do all this safely? I’m probably on…

---

## [How to use Gdk::Property.change?](https://www.ruby-forum.com/t/how-to-use-gdk-property-change/162454)

<div class="topic-metadata">

**Author:** [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Replies:** 4\
**Last updated:** [March 23, 2009, 4:35am UTC](https://www.ruby-forum.com/t/how-to-use-gdk-property-change/162454 "2009-03-23T04:35:33Z")

</div>

Hi, I want to do something like Gdk::Property.change(self, Gdk::Atom.intern('\_NET\_WM\_STRUT', false), Gdk::Atom.intern('CARDINAL', false), Gdk::Property::MODE\_REPLACE, \[0, 162, 0, 1024\]). It failed with “no supported ty…

---

## [Bug in glib/src/rbglib\_maincontext.c?](https://www.ruby-forum.com/t/bug-in-glib-src-rbglib-maincontext-c/163364)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/bug-in-glib-src-rbglib-maincontext-c/163364 "2009-03-20T16:58:27Z")

</div>

Line 640 reads priority = NIL\_P(rb\_priority) ? G\_PRIORITY\_DEFAULT : INT2NUM(rb\_priority); Shouldn’t that be NUM2INT(rb\_priority)? Same gose for line 664.

---

## [Iâ€™m working on GIO bind ings](https://www.ruby-forum.com/t/ia-m-working-on-gio-bind-ings/163360)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/ia-m-working-on-gio-bind-ings/163360 "2009-03-20T16:47:54Z")

</div>

Hi! Just wanted to let everyone know that I’m working on GIO bindings. I got fed up with FileUtils, Pathname, and File for doing my file management at work (on Windows), so I finally got around to trying to set this…

---

## [Gtk::IconView](https://www.ruby-forum.com/t/gtk-iconview/162820)

<div class="topic-metadata">

**Author:** [@taintedsushi](https://www.ruby-forum.com/u/taintedsushi)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/gtk-iconview/162820 "2009-03-14T13:57:57Z")

</div>

Does anyone have a working example of how to create a Gtk::iconview? I’m trying to make a image thumbnail directory navigation tool but seem to be stuck. Any help would be appreciated.

---

## [Recursive TreeStore problem](https://www.ruby-forum.com/t/recursive-treestore-problem/162562)

<div class="topic-metadata">

**Author:** [@taintedsushi](https://www.ruby-forum.com/u/taintedsushi)\
**Replies:** 14\
**Last updated:** [March 12, 2009, 2:39am UTC](https://www.ruby-forum.com/t/recursive-treestore-problem/162562 "2009-03-12T02:39:43Z")

</div>

I’ve built this recursive bit of code to take an array of arrays and create a treestore from it. It seems to do what it supposed to do except, child nodes are not appended to parent nodes. I suspect it has something…

---

## [Debian patches not upstream](https://www.ruby-forum.com/t/debian-patches-not-upstream/161358)

<div class="topic-metadata">

**Author:** [@arnaudcoquelet](https://www.ruby-forum.com/u/arnaudcoquelet)\
**Replies:** 1\
**Last updated:** [March 7, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/debian-patches-not-upstream/161358 "2009-03-07T13:51:26Z")

</div>

Hello, I’m preparing ruby-gnome2 0.18.1 and taking a look at some patches that are not upstream in 0.18.1, some might be of interest. http://t1r.net/~nohar/drag-signals.patch adds dnd support to GtkTreeStore http://…

---

## [Capture keyboard input without window focus](https://www.ruby-forum.com/t/capture-keyboard-input-without-window-focus/161479)

<div class="topic-metadata">

**Author:** [@pgoetzin](https://www.ruby-forum.com/u/pgoetzin)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/capture-keyboard-input-without-window-focus/161479 "2009-02-26T20:09:09Z")

</div>

Hello everyone, i need a suggestion, i have a GTK app that start without a window when i press shift+ctr+p a window should be shown. My current try is like follow its not really nice but its nearly working :smiley: T…

---

## [CellRendererSpin - how to use?](https://www.ruby-forum.com/t/cellrendererspin-how-to-use/156864)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 4\
**Last updated:** [February 26, 2009, 12:21am UTC](https://www.ruby-forum.com/t/cellrendererspin-how-to-use/156864 "2009-02-26T00:21:44Z")

</div>

Hello I tried writing a small Hello World style application with ruby-gtk2. After I was told that ‘list’ and ‘table’ are both spelled ‘treeview’ in GTK I was able to put together a small demo that actually allows edi…

---

## [Type\_register does not override default signal handler when the handler is included](https://www.ruby-forum.com/t/type-register-does-not-override-default-signal-handler-when-the-handler-is-included/160565)

<div class="topic-metadata">

**Author:** [@Kentaro\_F](https://www.ruby-forum.com/u/Kentaro_F)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 4:23am UTC](https://www.ruby-forum.com/t/type-register-does-not-override-default-signal-handler-when-the-handler-is-included/160565 "2009-02-25T04:23:11Z")

</div>

Hi all, When you want to override a default signal handler in your new class widget, calling type\_register is the best and only way in the current ruby-gtk2. class MyLabel \< Gtk::Label type\_register def signal\_do\_e…

---

## [Gtk threading priority](https://www.ruby-forum.com/t/gtk-threading-priority/160226)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [February 14, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/gtk-threading-priority/160226 "2009-02-14T19:47:01Z")

</div>

hi, i have a TCP communication in a background thread, and want to pulse a progressbar while that is going on, with the mutexed Gtk.timeout\_add threading method, i even tried to run while Gtk.events\_pending? do Gtk.m…

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

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