Re: GtkCombo events
- From: Carlos Pereira <jose carlos pereira ist utl pt>
- To: frederico schardong <frede sch gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkCombo events
- Date: Fri, 29 May 2009 18:28:47 +0100
Actually it is a ComboBoxEntry that you need, which is derived from a
ComboBox:
http://library.gnome.org/devel/gtk/stable/GtkComboBoxEntry.html
This is just a combination of a Entry with a ComboBox, so if you know
how Entry and ComBox works, changing a Combo to a ComboBoxEntry should
be relatively simple.
Carlos
frederico schardong wrote:
Hi,
I search, but not find the answer of my question..
What event is going on when the string selected of a GtkCombo is
chenged?
From Gtk documentation:
|GtkCombo| has been deprecated since version 2.4 and should not be
used in newly-written code. Use GtkComboBox
<http://library.gnome.org/devel/gtk/stable/GtkComboBox.html> instead.
When using GtkComboBox, you can cast the combo box to a entry widget:
entry = GTK_ENTRY (GTK_BIN (combo)->child);
and now you can use the "changed" signal to detect when the contents
of the entry widget has changed.
I had to convert a couple of GtkCombos to GtkComboBoxes myself, some
time ago, so if you need some help please let me know.
Carlos
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]