# Ruby-Gnome 2

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

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

---

## [Drawing large amounts of text](https://www.ruby-forum.com/t/drawing-large-amounts-of-text/80985)

<div class="topic-metadata">

**Author:** [@Conan\_K\_Woods](https://www.ruby-forum.com/u/Conan_K_Woods)\
**Replies:** 6\
**Last updated:** [January 3, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/drawing-large-amounts-of-text/80985 "2007-01-03T20:58:17Z")

</div>

Hi, I’ve recently run into a roadblock on a project I was working on and was wondering if anyone here has some good advice. I’ve got a big pixmap that I need to draw many characters to(lets say 1000 characters). Eac…

---

## [\[ANN\] Ruby-GNOME2-0.16.0](https://www.ruby-forum.com/t/ann-ruby-gnome2-0-16-0/80638)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 6\
**Last updated:** [January 3, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-0-16-0/80638 "2007-01-03T17:13:15Z")

</div>

Hi Forks, Sorry for late, but now Ruby-GNOME2-0.16.0 is available. Enjoy! Note: I canceled to release Ruby/GStreamaer and Ruby/Libgda because they’ve not been maintained for a long time and they can’t be compiled ag…

---

## [\[BUG\] libglade with more than one window (0.16.0)](https://www.ruby-forum.com/t/bug-libglade-with-more-than-one-window-0-16-0/80717)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 31, 2006, 4:41am UTC](https://www.ruby-forum.com/t/bug-libglade-with-more-than-one-window-0-16-0/80717 "2006-12-31T04:41:28Z")

</div>

Hi, I’ve just installed ruby-gnome 0.16 but it give me some problems with libglade. If you have a project with more than one window and only pharse a part of the XML-tree it throws this error message: /usr/local/lib…

---

## [\[BUG\] instance variable \_\_windows\_\_ not initialized](https://www.ruby-forum.com/t/bug-instance-variable-windows-not-initialized/97076)

<div class="topic-metadata">

**Author:** [@Tilman\_S](https://www.ruby-forum.com/u/Tilman_S)\
**Replies:** 4\
**Last updated:** [December 30, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/bug-instance-variable-windows-not-initialized/97076 "2006-12-30T13:53:49Z")

</div>

Hi guys, congrats on the new ruby-gnome2 release :slight\_smile: Unfortunately, there’s a problem with an uninitialized variable: tilman@hammerfest \[~/ruby-gtk2-0.15.0/gtk/sample\] \> ruby -w gtk-demo/main.rb gtk-demo/…

---

## [Re: png.h cvs compile error](https://www.ruby-forum.com/t/re-png-h-cvs-compile-error/80435)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 2\
**Last updated:** [December 27, 2006, 5:53am UTC](https://www.ruby-forum.com/t/re-png-h-cvs-compile-error/80435 "2006-12-27T05:53:34Z")

</div>

Kouhei S. wrote: What you need may be ‘–with-opt-dir=’ option: % ruby extconf.rb --with-opt-dir=/usr Thanks, kou It worked! Thanks! Are you going to commit to CVS the patch? Take Surveys. Earn Cash. Influence th…

---

## [Re: png.h cvs compile error](https://www.ruby-forum.com/t/re-png-h-cvs-compile-error/80074)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 0\
**Last updated:** [December 21, 2006, 6:39am UTC](https://www.ruby-forum.com/t/re-png-h-cvs-compile-error/80074 "2006-12-21T06:39:31Z")

</div>

It worked! How do you install into /usr instead of /usr/local? Thanks

---

## [TreeView and De-Select?](https://www.ruby-forum.com/t/treeview-and-de-select/79909)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/treeview-and-de-select/79909 "2006-12-20T17:05:21Z")

</div>

Hi there, When I select an entry in a TreeView, it highlights this line. Is there some way to deselect this again? I ask because I have a use case where there is only one line stored in my list store, and its a bit c…

---

## [Is there a HOWTO for compiling against msvcrt?](https://www.ruby-forum.com/t/is-there-a-howto-for-compiling-against-msvcrt/79719)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 4\
**Last updated:** [December 20, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/is-there-a-howto-for-compiling-against-msvcrt/79719 "2006-12-20T17:05:19Z")

</div>

Hi! Does anyone have a HOWTO on how to compile ruby-gnome2 against msvcrt? I need to compile the CVS version for Win32 so that I can use the new “wizard” dialogs. Thanks. nikolai Take Surveys. Earn Cash. Influence…

---

## [Png.h cvs compile error](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 3\
**Last updated:** [December 20, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682 "2006-12-20T17:05:19Z")

</div>

I don’t know if you want me reporting a cvs compile error, so if this project does not want that please say so. Anyway, I am having a problem compiling from cvs. I have a ubuntu feisty box and libart failed the config…

---

## [Focus on hover](https://www.ruby-forum.com/t/focus-on-hover/79723)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [December 18, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/focus-on-hover/79723 "2006-12-18T18:03:45Z")

</div>

Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net’s Techsay panel and you’ll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.tech…

---

## [Binding Information](https://www.ruby-forum.com/t/binding-information/79668)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 1\
**Last updated:** [December 18, 2006, 1:37am UTC](https://www.ruby-forum.com/t/binding-information/79668 "2006-12-18T01:37:45Z")

</div>

Is there any docs on binding libraries? I cannot find anything. I am trying to bind libgpod so that hopefully I can make a media player to replace banshee and rhythmbox on my machine. Thanks Take Surveys. Earn Cash.…

---

## [Using image as background for label](https://www.ruby-forum.com/t/using-image-as-background-for-label/79348)

<div class="topic-metadata">

**Author:** [@Laurent\_Marzullo](https://www.ruby-forum.com/u/Laurent_Marzullo)\
**Replies:** 0\
**Last updated:** [December 14, 2006, 1:27pm UTC](https://www.ruby-forum.com/t/using-image-as-background-for-label/79348 "2006-12-14T13:27:33Z")

</div>

Hello all, I would like to know if there’s a way to use an image to fill the background of a label widget ? (Like the background attribute of the html tag or that fill the background of the page/table to a specific…

---

## [GtkMozEmbed set\_comp\_path (xulrunner)](https://www.ruby-forum.com/t/gtkmozembed-set-comp-path-xulrunner/74627)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 1\
**Last updated:** [December 10, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/gtkmozembed-set-comp-path-xulrunner/74627 "2006-12-10T20:13:42Z")

</div>

Hey, I’ve just compiled ruby-gnome2 (from cvs) against xulrunner’s gtkmozembed library, and I’ve discovered that calling Gtk::MozEmbed.set\_profile\_path(“/usr/lib/firefox/plugins”) – before the constructor – causes so…

---

## [Small fix for some GtkAction subclasses](https://www.ruby-forum.com/t/small-fix-for-some-gtkaction-subclasses/78896)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 4\
**Last updated:** [December 10, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/small-fix-for-some-gtkaction-subclasses/78896 "2006-12-10T18:35:32Z")

</div>

Attached is a patch which fixes some issues I ran into trying to use Gtk::RadioAction and Gtk::ToggleAction in a program I’m working on. It mostly just brings the initializer methods into line to match the Gtk::Action…

---

## [\[ANN\] Ruby/GtkWrapbox 0.1.0](https://www.ruby-forum.com/t/ann-ruby-gtkwrapbox-0-1-0/78552)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 5\
**Last updated:** [December 10, 2006, 2:59pm UTC](https://www.ruby-forum.com/t/ann-ruby-gtkwrapbox-0-1-0/78552 "2006-12-10T14:59:10Z")

</div>

Ruby/GtkWrapBox is a binding for the gtkwrapbox family of widgets from the GIMP project (the abstract class gtkwrapox and its children, gtkhwrapbox and gtkvwrapbox). A screenshot and the tarball can be found at http:…

---

## [Using a different cairo context of Gtk::DrawingArea](https://www.ruby-forum.com/t/using-a-different-cairo-context-of-gtk-drawingarea/78737)

<div class="topic-metadata">

**Author:** [@asubedi](https://www.ruby-forum.com/u/asubedi)\
**Replies:** 3\
**Last updated:** [December 8, 2006, 7:53am UTC](https://www.ruby-forum.com/t/using-a-different-cairo-context-of-gtk-drawingarea/78737 "2006-12-08T07:53:58Z")

</div>

Hi all, I am trying to write a graph widget by subclassing Gtk::DrawingArea and using cairo (ruby-gnome2 version 0.15 in ubuntu edgy). The examples about using cairo with DrawingArea create a cairo context in the ex…

---

## [What is the current status?](https://www.ruby-forum.com/t/what-is-the-current-status/77675)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 22\
**Last updated:** [December 7, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/what-is-the-current-status/77675 "2006-12-07T15:53:04Z")

</div>

I am looking into languages for linux programming and came upon the ruby language. I use gnome so I was looking for gtk bindings. When I started using the bindings included in edgy eft (the released ones) I kept runni…

---

## [Visual Mark in Source Buffer - Example?](https://www.ruby-forum.com/t/visual-mark-in-source-buffer-example/78585)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 3:37am UTC](https://www.ruby-forum.com/t/visual-mark-in-source-buffer-example/78585 "2006-12-07T03:37:12Z")

</div>

Hi, Gtk::SourceBuffer.new create\_marker(name=nil, type=nil, where) http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASourceBuffer Does anyone of you have an example how to create a visual mark in a source buffer? …

---

## [Glade callbacks and handlers](https://www.ruby-forum.com/t/glade-callbacks-and-handlers/78472)

<div class="topic-metadata">

**Author:** [@williej](https://www.ruby-forum.com/u/williej)\
**Replies:** 2\
**Last updated:** [December 6, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/glade-callbacks-and-handlers/78472 "2006-12-06T18:25:17Z")

</div>

I am trying to get a program to run and while I got the glade window to show, when I tried to make buttons execute code I started getting errors. I seem to be having problems with this line: glade = GladeXML.new(‘main…

---

## [Glib-GObject-CRITICAL after update](https://www.ruby-forum.com/t/glib-gobject-critical-after-update/78248)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/glib-gobject-critical-after-update/78248 "2006-12-05T15:37:18Z")

</div>

Hi, since the last update I get some really ugly warning messages just when I call ‘require “gtk2”’ (see below). I’m using Gentoo. I upgraded from ruby-glib2-0.14.1 to -0.15.0 but that did not help. I reinstalled gli…

---

## [Need help packaging a library](https://www.ruby-forum.com/t/need-help-packaging-a-library/78025)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 6\
**Last updated:** [December 5, 2006, 1:57am UTC](https://www.ruby-forum.com/t/need-help-packaging-a-library/78025 "2006-12-05T01:57:46Z")

</div>

I’ve written wrappers for the gtk\_wrapbox set of widgets from gimp, which are currently compiling by means of a small shellscript that simply calls gcc on each file in turn and generates three .so files \[pasted in bel…

---

## [Radio button in menu activate](https://www.ruby-forum.com/t/radio-button-in-menu-activate/77863)

<div class="topic-metadata">

**Author:** [@J-Van](https://www.ruby-forum.com/u/J-Van)\
**Replies:** 2\
**Last updated:** [December 1, 2006, 2:36am UTC](https://www.ruby-forum.com/t/radio-button-in-menu-activate/77863 "2006-12-01T02:36:20Z")

</div>

Hi, In the following code, when I select the second radio button, both the ‘activate’ callbacks are executed. I don’t want both to be executed, only the selected menu should have its callback executed. Any ideas? T…

---

## [\[BUG\] Segmentation fault if using PrintOperation for the sec](https://www.ruby-forum.com/t/bug-segmentation-fault-if-using-printoperation-for-the-sec/77236)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 26, 2006, 10:36am UTC](https://www.ruby-forum.com/t/bug-segmentation-fault-if-using-printoperation-for-the-sec/77236 "2006-11-26T10:36:32Z")

</div>

Hi, i attach a script, which sets page setup(this may not be necessary for the bug to appear), and then enters a loop in which it calls PrintOperation.run until it segfault. the script generates a 61 page empty print…

---

## [Treeview gridlines](https://www.ruby-forum.com/t/treeview-gridlines/77241)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 25, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241 "2006-11-25T16:13:15Z")

</div>

Hi, i just noticed the existence of method (not in the docs yet), and tried to set Gtk::TreeView.set\_enable\_grid\_lines(Gtk::TreeView::GridLines::VERTICAL) but it results in: Gdk-CRITICAL \*\*:gdk\_draw\_line: assertion…

---

## [Uninitialized constant Gtk::PageSetupUnixDialog (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-gtk-pagesetupunixdialog-nameerror/77166)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 10:24am UTC](https://www.ruby-forum.com/t/uninitialized-constant-gtk-pagesetupunixdialog-nameerror/77166 "2006-11-25T10:24:38Z")

</div>

Hi, @page\_setup\_dialog=Gtk::PageSetupUnixDialog.new() gives uninitialized constant Gtk::PageSetupUnixDialog (NameError) i suppose it should create a Gtk::PageSetupUnixDialog i just updated from cvs, and the issue st…

---

## [Printoperation dunno howto](https://www.ruby-forum.com/t/printoperation-dunno-howto/76674)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 10\
**Last updated:** [November 24, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/printoperation-dunno-howto/76674 "2006-11-24T21:04:47Z")

</div>

hi, i managed to print some pages, header, footer positioned, i liked it, almost felt it done. then i wanted to extend my treeview class with a print capability, but then i confronted with the fact, that i don’t know…

---

## [\- Placing ScrolledWindow and the scrollbars](https://www.ruby-forum.com/t/placing-scrolledwindow-and-the-scrollbars/77041)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [November 23, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/placing-scrolledwindow-and-the-scrollbars/77041 "2006-11-23T18:27:34Z")

</div>

Hi, first the sample code: require ‘gtk2’ class Test \< Gtk::VBox def initialize() super() @scrolled\_window = Gtk::ScrolledWindow.new #@scrolled\_window.window\_placement = Gtk::CORNER\_TOP\_RIGHT @scrolled\_window.wind…

---

## [Re: Selecting appropriate widgets -- advice please](https://www.ruby-forum.com/t/re-selecting-appropriate-widgets-advice-please/77008)

<div class="topic-metadata">

**Author:** [@Mike\_Wilson](https://www.ruby-forum.com/u/Mike_Wilson)\
**Replies:** 0\
**Last updated:** [November 23, 2006, 11:51am UTC](https://www.ruby-forum.com/t/re-selecting-appropriate-widgets-advice-please/77008 "2006-11-23T11:51:30Z")

</div>

In the gtk/ruby source dist I found the file drag-move.rb which is a very useful example of how to do pretty much what I want to do. I recommend anyone interested in high-ish level drawing, moving & dragging have a lo…

---

## [Gtk::Button and activating it / disabling activation](https://www.ruby-forum.com/t/gtk-button-and-activating-it-disabling-activation/76868)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [November 21, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/gtk-button-and-activating-it-disabling-activation/76868 "2006-11-21T21:16:50Z")

</div>

Hi ruby-gnomists :slight\_smile: If i put a button into a widget, I can move to it when i use the arrow keys. This is a useful feature, but not necessarily always. Is there a way to disable activating a button with t…

---

## [Re: Selecting appropriate widgets -- advice please](https://www.ruby-forum.com/t/re-selecting-appropriate-widgets-advice-please/76826)

<div class="topic-metadata">

**Author:** [@Mike\_Wilson](https://www.ruby-forum.com/u/Mike_Wilson)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/re-selecting-appropriate-widgets-advice-please/76826 "2006-11-21T15:07:14Z")

</div>

Thanks for the helpful advice. I looked a cairo, decided it was too complicated and low-level for what I have in mind. I’m going with DrawingArea for the main ‘canvas’. At the moment, I’m keeping my objects in Pixmaps…

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

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