Forum: Ruby-Gnome 2 Set Property, Gtk & Ruby

Ff312ec21b0fd1d07c8708e29df7d242?d=identicon&s=25 Ebru Akagunduz (ebruakagunduz)
on 2013-01-27 23:07
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.
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2013-01-28 00:41
(Received via mailing list)
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 Akagunduz <
ruby-forum-incoming@andreas-s.net> 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
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-...
>



--
Mario Steele
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
Ff312ec21b0fd1d07c8708e29df7d242?d=identicon&s=25 Ebru Akagunduz (ebruakagunduz)
on 2013-01-28 01:29
I use this tutorial.
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%...
 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.
3853dd5371ac1e094fc45d6c2aa0e459?d=identicon&s=25 Carlo E. Prelz (Guest)
on 2013-01-28 07:10
(Received via mailing list)
Subject: [ruby-gnome2-devel-en] Set Property, Gtk & Ruby
  Date: Sun 27 Jan 13 11:07:33PM +0100

Quoting Ebru Akagunduz (ruby-forum-incoming@andreas-s.net):

> 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 - fluido@fluido.as             che bisogno ci
sarebbe
  *               di parlare tanto di amore e di rettitudine?
(Chuang-Tzu)
Ff312ec21b0fd1d07c8708e29df7d242?d=identicon&s=25 Ebru Akagunduz (ebruakagunduz)
on 2013-01-28 12:41
Ok. I understand thank you
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.