Hi Baltasar,

On 26.01.2017 19:43, Baltasar García Perez-Schofield wrote:
>
> I suppose that's because gtk3 is not complete yet. I think, I'm not sure.
> Is anybody in the list capable of answering?
>
> Anyway, you have Active, which will give you the selected item (or
> -1), so you know which item was selected.
>
> -- Baltasar
>
I have defined the GtkComboBoxText in that way:

<object class="GtkComboBoxText" id="cboDocType"> <property 
name="visible">True</property> <property name="can_focus">False</property> 
<property name="active">0</property> <items> <item id="0" 
translatable="yes">Article</item> <item id="1" translatable="yes">Book</item> 
</items> <signal name="changed" handler="OnCboDocTypeChanged"
swapped="no"/> <signal name="move-active"
handler="OnCboDocTypeMoveActive" swapped="no"/> </object>

The property "active" defines 0 as active entry. So "Article" should be
the preselected entry.

BTW: If a user changes the ComboBox entry what kind of signal sends the
GUI? Is it "changed" or "move-active". For me it sounds similar.

Greetings
Sascha
-- 


<https://saigkill.github.io/>

Sascha Manns
sascha.ma...@mailbox.org <mailto:sascha.ma...@mailbox.org>
GPG: 0x168428cdb1f20ab1
<http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on>
jabber:sascha.ma...@jabber.org <jabber:sascha.ma...@jabber.org>


Maifeldstraße 10
56727 Mayen
mobile: +49-1573-9242730
home: +49-2651-4014045
https://saigkill.github.io

Twitter <https://twitter.com/saigkill> Facebook
<https://www.facebook.com/sascha.manns> LinkedIn
<https://de.linkedin.com/in/saigkill> Skype <skype:schurik0815?call>
Github <https://github.com/saigkill> Xing
<https://www.xing.com/profile/Sascha_Manns4>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/gtk-sharp-list

Reply via email to