Set Property, Gtk & Ruby

Hi, how can i set “min-position” property for Gtk::HPaned? I couldn’t
find syntax. I tried hpaned.set_property(‘min-position’,100) but it
wasn’t.

Ebru,

In ruby, convert the dash to an underscore for any properties that are
on a
Gtk Object, in this case: min-position becomes min_position.

hth,

Mario

On Sun, Jan 27, 2013 at 5:07 PM, Ebru A. <
[email protected]> wrote:

MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only – learn more at:
http://p.sf.net/sfu/learnnow-d2d


ruby-gnome2-devel-en mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


Mario S.
Fleet Captain
CO - Geo 99
CO - USS T’hy’la
XO - Diplomatic Corps - Second Life
http://www.iftcommand.com/chapters/thyla/
http://www.trekfederation.com

I use this tutorial.
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3APaned#min_position
min_position is get method, but i want to set “min_position”. Also I
tried hpaned.set_property(‘min_position’,100) but it wasn’t.

Subject: [ruby-gnome2-devel-en] Set Property, Gtk & Ruby
Date: Sun 27 Jan 13 11:07:33PM +0100

Quoting Ebru A. ([email protected]):

Hi, how can i set “min-position” property for Gtk::HPaned? I couldn’t
find syntax. I tried hpaned.set_property(‘min-position’,100) but it
wasn’t.

If you look at the Paned doc page:

http://developer.gnome.org/gtk3/3.6/GtkPaned.html

you will see that the ‘min-position’ property is read-only.

Carlo

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

parte,

  • K * Carlo E. Prelz - [email protected] che bisogno ci
    sarebbe
    •           di parlare tanto di amore e di rettitudine? 
      

(Chuang-Tzu)

Ok. I understand thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs