# Ruby-Gnome 2

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

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

---

## [Errors](https://www.ruby-forum.com/t/errors/114205)

<div class="topic-metadata">

**Author:** [@tobbyd](https://www.ruby-forum.com/u/tobbyd)\
**Replies:** 4\
**Last updated:** [September 11, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/errors/114205 "2007-09-11T19:39:00Z")

</div>

I get these strange error messages no matter which program i run. What is wrong and how do I get it working. Thanks /usr/lib/ruby/1.8/glib2.rb: line 55 GLib-GObject-CRITICAL \*\*:g\_boxed\_type\_register\_static: assertion …

---

## [ANNOUNCE: Fantasdic 1.0-beta4 released](https://www.ruby-forum.com/t/announce-fantasdic-1-0-beta4-released/114193)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 2:09pm UTC](https://www.ruby-forum.com/t/announce-fantasdic-1-0-beta4-released/114193 "2007-09-09T14:09:04Z")

</div>

Hi, I’ve just released Fantasdic 1.0-beta4. Fantasdic is a DICT client (RFC 2229). This is a dictionary application which uses the network to retrieve definitions. For example, nihongobenkyo.org is a server that pr…

---

## [How do you keep widgets from centering?](https://www.ruby-forum.com/t/how-do-you-keep-widgets-from-centering/113051)

<div class="topic-metadata">

**Author:** [@pdubb](https://www.ruby-forum.com/u/pdubb)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 12:20am UTC](https://www.ruby-forum.com/t/how-do-you-keep-widgets-from-centering/113051 "2007-08-28T00:20:38Z")

</div>

I’m making a simple communication program that displays a message, the sender’s name, and the title. I want the text to be “stuck” to the left side of the window. I’ve tried packing Labels into Tables, and Labels into…

---

## [Blockers when subclassing Gtk::Container](https://www.ruby-forum.com/t/blockers-when-subclassing-gtk-container/112474)

<div class="topic-metadata">

**Author:** [@wo\_boo](https://www.ruby-forum.com/u/wo_boo)\
**Replies:** 3\
**Last updated:** [August 27, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/blockers-when-subclassing-gtk-container/112474 "2007-08-27T16:13:40Z")

</div>

When subclassing Gtk::Container I’ve found that overriding “abstract” methods seems to go unnoticed by the underlying gtk system… When I override Gtk::Container#add and do child.parent=self inside it I get this: /us…

---

## [Bug in Gtk::EntryCompletion match-selected signal?](https://www.ruby-forum.com/t/bug-in-gtk-entrycompletion-match-selected-signal/112724)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 10:07am UTC](https://www.ruby-forum.com/t/bug-in-gtk-entrycompletion-match-selected-signal/112724 "2007-08-24T10:07:08Z")

</div>

The attached script bombs when an entry is selected from the list of completions (try entering a “T”). It seems that the iterator passed to the signal handler isn’t attached to the model properly. I have been unable…

---

## [How to add a custom event to Gtk::Statusbar?](https://www.ruby-forum.com/t/how-to-add-a-custom-event-to-gtk-statusbar/112749)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 9:47am UTC](https://www.ruby-forum.com/t/how-to-add-a-custom-event-to-gtk-statusbar/112749 "2007-08-24T09:47:05Z")

</div>

Hello list, How can I make a Gtk::Statusbar respond to a “new signal”, like :clicked status\_bar = Gtk::Statusbar.new status\_bar.signal\_connect(:clicked) do puts “test - click works!” end I believe one has to use Gl…

---

## [Generating off line documentation from the RD files](https://www.ruby-forum.com/t/generating-off-line-documentation-from-the-rd-files/112677)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 2:53am UTC](https://www.ruby-forum.com/t/generating-off-line-documentation-from-the-rd-files/112677 "2007-08-22T02:53:14Z")

</div>

I’ve been googleing, i asked the ruby irc channel on freenode, but i cannot figure out how to take the RD files: http://ruby-gnome2.sourceforge.jp/data/ruby-gnome2-api.tar.gz and make reasonable html documentation or …

---

## [Bug in libglade2 from CVS](https://www.ruby-forum.com/t/bug-in-libglade2-from-cvs/112291)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/bug-in-libglade2-from-cvs/112291 "2007-08-17T15:12:47Z")

</div>

Hi, I get the following error with the .glade file below\* when using the CVS version of RG2. Other files than this one seem to work fine. I don’t get this problem with the version of RG2 packaged by Debian (0.16 with …

---

## [Interfaces/Modules, can we actually include them? + Sortable](https://www.ruby-forum.com/t/interfaces-modules-can-we-actually-include-them-sortable/111879)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/interfaces-modules-can-we-actually-include-them-sortable/111879 "2007-08-13T18:24:35Z")

</div>

so, every time I try to include a ruby gtk interface (like TreeSortable) I get something like this: ./database\_display.rb:110:in \`append\_features’: Not a subclass of GLib::Instantiatable (TypeError) For instance, I h…

---

## [Treeview conditional drag and drop](https://www.ruby-forum.com/t/treeview-conditional-drag-and-drop/111854)

<div class="topic-metadata">

**Author:** [@Antonio\_Cabrera](https://www.ruby-forum.com/u/Antonio_Cabrera)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/treeview-conditional-drag-and-drop/111854 "2007-08-12T12:10:24Z")

</div>

Hi, Could anyone put an example of how to make conditional drag and drop in a treeview, for example, to not permit move of a row in certain conditions? I have tried to work with GtkDragDest and drop\_possible, but I …

---

## [Convenience GEnum/GFlags notation](https://www.ruby-forum.com/t/convenience-genum-gflags-notation/111643)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/convenience-genum-gflags-notation/111643 "2007-08-09T13:27:46Z")

</div>

Hi, I’ve committed new convenience GEnum/GFlags notation support into HEAD. Now, we can use :nick\_name instead of ClassName::NICK\_NAME. For example: GLib::UTF8.normalize(utf8, GLib::NormalizeMode::NFD) → GLib::U…

---

## [Gtk::Print\* sample program](https://www.ruby-forum.com/t/gtk-print-sample-program/110991)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 1\
**Last updated:** [August 5, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/gtk-print-sample-program/110991 "2007-08-05T17:43:17Z")

</div>

Hi, I made a sample program to demonstrate how to use Gtk::Print\* . It also demonstrates a simple pagination algorithm. It would be great if you could add it to gtk/sample/misc/! Cheers, Mathieu

---

## [List all current windows open...?](https://www.ruby-forum.com/t/list-all-current-windows-open/110997)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/list-all-current-windows-open/110997 "2007-08-01T20:06:28Z")

</div>

Is there a way to list all of the current windows open? For example, I’d like to find all Firefox windows and minimize them. I’ve tried looking in Gtk::Window.toplevels but it’s empty and Gdk::Window.toplevels only …

---

## [Drag and drop between treeviews](https://www.ruby-forum.com/t/drag-and-drop-between-treeviews/110895)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/drag-and-drop-between-treeviews/110895 "2007-07-31T21:54:37Z")

</div>

I want to enable drag and drop between two different tree views… one treeview actually uses a treefiltermodel, which I guess doesn’t implement the dragdest interface… I enabled dragging from the one treeview: @treevi…

---

## [Antialiasing lines, Gdk::Drawable](https://www.ruby-forum.com/t/antialiasing-lines-gdk-drawable/110796)

<div class="topic-metadata">

**Author:** [@conan](https://www.ruby-forum.com/u/conan)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/antialiasing-lines-gdk-drawable/110796 "2007-07-31T19:23:20Z")

</div>

Anybody have any tips on if antialiasing lines is possible in with Gtk? I’ve got a boat load of lines I draw on a Gdk:Drawable that would look very pretty antialiased on a white background.

---

## [Gtk::Entry and arrow key events](https://www.ruby-forum.com/t/gtk-entry-and-arrow-key-events/110885)

<div class="topic-metadata">

**Author:** [@giorgian](https://www.ruby-forum.com/u/giorgian)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/gtk-entry-and-arrow-key-events/110885 "2007-07-31T19:14:43Z")

</div>

hi, i’m implementing history in a Gtk::Entry. if i do: @entry.signal\_connect(“key\_press\_event”) do |widget, event| if event.state.control\_mask? and event.keyval == Gdk::Keyval::GDK\_p # show previous thing elsif eve…

---

## [Key bindings for specific widgets](https://www.ruby-forum.com/t/key-bindings-for-specific-widgets/110707)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 1:14am UTC](https://www.ruby-forum.com/t/key-bindings-for-specific-widgets/110707 "2007-07-30T01:14:30Z")

</div>

Hi, I’m wondering how one normally adds key bindings for specific widgets using ruby-gtk… I’m pretty new to gtk in general. Basically, I’m wanting to set up a key binding for adding a new element to a tree model \[and …

---

## [The anticipated ChangeLog discussion](https://www.ruby-forum.com/t/the-anticipated-changelog-discussion/110345)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 7\
**Last updated:** [July 27, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/the-anticipated-changelog-discussion/110345 "2007-07-27T17:47:15Z")

</div>

Masao, I don’t know, maybe you are waiting for me to open the anticipated ChangeLog discussion? As far as I know, I had made proposals in my last message about it, I was thinking it would be a starting point for your…

---

## [\[patch\] Leak and typo fix](https://www.ruby-forum.com/t/patch-leak-and-typo-fix/110346)

<div class="topic-metadata">

**Author:** [@sschunselaar](https://www.ruby-forum.com/u/sschunselaar)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/patch-leak-and-typo-fix/110346 "2007-07-25T17:52:48Z")

</div>

Hi, Attached are two simple patches: ruby-gnome2-value-array-free.patch: This patch lets the signal code use the proper GValueArray api instead of using it as a glorified array. Which has the important side-effec…

---

## [Selection box in a Gtk::DrawingArea](https://www.ruby-forum.com/t/selection-box-in-a-gtk-drawingarea/109764)

<div class="topic-metadata">

**Author:** [@conan](https://www.ruby-forum.com/u/conan)\
**Replies:** 3\
**Last updated:** [July 18, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/selection-box-in-a-gtk-drawingarea/109764 "2007-07-18T23:19:27Z")

</div>

Hi, I was wondering if anybody knows the best way to make a “selected” box by clicking and dragging within a Gtk:DrawingArea. I’m looking around the Gtk2 API, but I’m not sure of the terminology for this kind of thin…

---

## [RVAL2BOXED and supporting Qnil](https://www.ruby-forum.com/t/rval2boxed-and-supporting-qnil/108984)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 14\
**Last updated:** [July 18, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/rval2boxed-and-supporting-qnil/108984 "2007-07-18T23:15:43Z")

</div>

gtk\_widget\_modify\_bg\[1\] supports passing NULL as the GdkColor\* to undo the effect of a previous call with a real color. I want to use that in my program, but rg2 doesn’t like it, as RVAL2BOXED doesn’t like being fed w…

---

## [Treemodel](https://www.ruby-forum.com/t/treemodel/108491)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 11\
**Last updated:** [July 14, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/treemodel/108491 "2007-07-14T22:24:29Z")

</div>

Is it possible to create a custom treemodel in ruby? I’ve seen that other people want to do this but have not heard if anyone has been successful. If it is possible, does anyone have an example to share? I have data …

---

## [RVAL2CBOOL vs RTEST](https://www.ruby-forum.com/t/rval2cbool-vs-rtest/109326)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 13\
**Last updated:** [July 14, 2007, 3:56am UTC](https://www.ruby-forum.com/t/rval2cbool-vs-rtest/109326 "2007-07-14T03:56:13Z")

</div>

I’ve counted 88 uses of RVAL2CBOOL and 401 uses of RTEST in the code. As RVAL2CBOOL is defined to use RTEST, I think we should should choose either one, and then use only one form. RTEST is more rubyish but RVAL2CBOOL…

---

## [Insensitive menuitems](https://www.ruby-forum.com/t/insensitive-menuitems/108866)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 13, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/insensitive-menuitems/108866 "2007-07-13T20:59:30Z")

</div>

Hi, how can i set menuitems from menus, wich are made with glade, insensitive? i’ve searched around, but came to no sollution… Cheers detlef This SF.net email is sponsored by DB2 Express Download DB2 Express C - …

---

## [Extconf.rb fails in gtk](https://www.ruby-forum.com/t/extconf-rb-fails-in-gtk/109330)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [July 13, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/extconf-rb-fails-in-gtk/109330 "2007-07-13T19:32:16Z")

</div>

Hi, if you have your sources in a path wich contains spaces extconf.rb fails in gtk: checking for cairo… yes checking for rb\_cairo.h… no /usr/bin/ruby1.8: Is a directory - /home/det/Desktop/Software/ruby-gnome2-cvs…

---

## [RVAL2CBOOL lax type check](https://www.ruby-forum.com/t/rval2cbool-lax-type-check/109355)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 2\
**Last updated:** [July 13, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/rval2cbool-lax-type-check/109355 "2007-07-13T19:19:12Z")

</div>

So we now use RVAL2CBOOL for rg2 library calls awaiting a gboolean parameter. Though, RVAL2CBOOL is RTEST and RTEST is kinda lax: it accepts barely any ruby value. So basically you can pass nil, a string, or a widget …

---

## [Cannot modify selected\_each model](https://www.ruby-forum.com/t/cannot-modify-selected-each-model/109342)

<div class="topic-metadata">

**Author:** [@mack\_stout](https://www.ruby-forum.com/u/mack_stout)\
**Replies:** 1\
**Last updated:** [July 13, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/cannot-modify-selected-each-model/109342 "2007-07-13T17:46:56Z")

</div>

Hi List, I’m having some trouble w/ this piece of code: @stores\_selected.selected\_each do |model, path, iter| subrow = model.append(iter) end it appears as though modifying the model from within a selected\_each ite…

---

## [Ideas for (small) internal code enhancement](https://www.ruby-forum.com/t/ideas-for-small-internal-code-enhancement/109021)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 3\
**Last updated:** [July 13, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/ideas-for-small-internal-code-enhancement/109021 "2007-07-13T17:43:55Z")

</div>

Lately I have seen there are lots of places in the code where we have: return …expression… ? Qtrue : Qfalse I think all of these cases may be replaced by return CBOOL2RVAL(…expression…) I can script the change if…

---

## [Proposed ? Qtrue : QFalse cleanup fix](https://www.ruby-forum.com/t/proposed-qtrue-qfalse-cleanup-fix/109328)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 2\
**Last updated:** [July 13, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/proposed-qtrue-qfalse-cleanup-fix/109328 "2007-07-13T16:15:39Z")

</div>

Please find attached the proposed qtrue-qfalse cleanup patch. I’ve reviewed it line by line but I figured out some might want to have a look on it. Also, I’d be interested if someone could test on a rb/gnome applicati…

---

## [Problem compiling gtksourceview bindings?](https://www.ruby-forum.com/t/problem-compiling-gtksourceview-bindings/109225)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [July 13, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/problem-compiling-gtksourceview-bindings/109225 "2007-07-13T15:02:29Z")

</div>

Hi there, not sure why but gtksourceview seems to give me slight problems. The other ruby-gnome bindings work well, i.e. buttons etc… are all working, just not getting ruby-gtksourceview to compile. Maybe one of you …

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

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