# GTK Table - attach to table but minimal rows?

**URL:** <https://www.ruby-forum.com/t/gtk-table-attach-to-table-but-minimal-rows/213572>\
**Category:** Ruby-Gnome 2\
**Created:** [November 5, 2011, 5:04pm UTC](https://www.ruby-forum.com/t/gtk-table-attach-to-table-but-minimal-rows/213572 "2011-11-05T17:04:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 5, 2011, 5:04pm UTC](https://www.ruby-forum.com/t/gtk-table-attach-to-table-but-minimal-rows/213572/1 "2011-11-05T17:04:07Z")

</div>

I need a hint to layout a program.

Right now I use a table.

It has 3 columns:

| one | two | three

This is fine so far.

Now I want to append a Gtk::Statusbar

## | one | two | three

STATUSBAR GOES HERE

But I want the statusbar to take as little space as possible. I want to  
make it fairly “thin”.

I guess I can use Gtk::Table#attach but my question is:

What setting or option should I use to make that row be very thin? I  
don’t want to have it take equal space like the rest of the table … I  
want it to be very smallish.

Perhaps I should use something else rather than a table?

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [November 5, 2011, 9:58pm UTC](https://www.ruby-forum.com/t/gtk-table-attach-to-table-but-minimal-rows/213572/2 "2011-11-05T21:58:42Z")

</div>

Marc H. wrote in post #1030310:

> Perhaps I should use something else rather than a table?

Use a vbox with 2 child :

- your table
- the statusbar

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [November 11, 2011, 9:45am UTC](https://www.ruby-forum.com/t/gtk-table-attach-to-table-but-minimal-rows/213572/3 "2011-11-11T09:45:53Z")

</div>

Hello there. For the first time I am playing a bit with  
Gstreamer. When running sample program gst-inspect.rb, I received this  
message:

ruby: symbol lookup error:  
/usr/local/lib/ruby/site\_ruby/1.9.1/x86\_64-linux/gstreamer.so: undefined  
symbol: rbg\_rval2cstr

I noticed that rbg\_rval2cstr is defined in glib2.so and solved the  
problem with a hack: I added this line:

$LOCAL\_LIBS="/usr/local/lib/ruby/site\_ruby/1.9.1/x86\_64-linux/glib2.so"

in …/gstreamer/ext/gstreamer/extconf.rb and the script now  
works. But this is a horrible, non-portable hack. Somebody will  
certainly know the right way to make sure rbg\_rval2cstr is found by  
gstreamer.so.

Or maybe it is only me who encountered this problem…

Carlo

–

- 

```
    Se la Strada e la sua Virtu' non fossero state messe da 

```

parte,

- K \* Carlo E. Prelz - removed\_email\_address@domain.invalid che bisogno ci  
sarebbe
  - 

```
          di parlare tanto di amore e di rettitudine? 

```

(Chuang-Tzu)
