<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
DaVinci wrote:
<blockquote cite="mid20060925074501.GA31314@..." type="cite">
<pre wrap="">El lunes 25 de septiembre, Dobai-Pataky Balint escribió:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">have you tried having a set_model(Gtk::ListStore) after your
super() ?
</pre>
</blockquote>
<pre wrap=""> If I do that, get:
(eval):2:in `set_property': Class isn't supported (TypeError)
</pre>
</blockquote>
<pre wrap="">sorry, i thought you should add:
@mymodel=Gtk::ListStore.new(String,String)
super() # for ComboBox.new
set_model(@mymodel)
</pre>
</blockquote>
<pre wrap=""><!---->
Ops! I wanted going too fast 0:)
Thank you for your ideas. Only a last question. If I destroy
Gtk.ComboBox, is respective Gtk.ListStore destroyed?
</pre>
</blockquote>
i think so, <br>
if not, connect a signal to combobox's destroy event, and destroy model
too,<br>
verify that by connecting a to treemodel's destroy and print a 'I'm
treemodel, and i'm called to be destroyed :)"<br>
this is the way I'd verify it, at least.<br>
<blockquote cite="mid20060925074501.GA31314@..." type="cite">
<pre wrap="">
David
-------------------------------------------------------------------------
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
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
ruby-gnome2-devel-en mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ruby-gnome2-devel-en@...>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en">https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en</a>
</pre>
</blockquote>
</body>
</html>
|