mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Implement this in terms of gtk_combo_box_get_active_iter(), instead of
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed): Implement this in terms of gtk_combo_box_get_active_iter(), instead of gtk_combo_box_get_active().
This commit is contained in:
parent
15f23d383c
commit
32d874f83a
@ -1,3 +1,9 @@
|
||||
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
|
||||
Implement this in terms of gtk_combo_box_get_active_iter(),
|
||||
instead of gtk_combo_box_get_active().
|
||||
|
||||
2004-07-29 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
|
||||
Implement this in terms of gtk_combo_box_get_active_iter(),
|
||||
instead of gtk_combo_box_get_active().
|
||||
|
||||
2004-07-29 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
|
||||
Implement this in terms of gtk_combo_box_get_active_iter(),
|
||||
instead of gtk_combo_box_get_active().
|
||||
|
||||
2004-07-29 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
|
||||
Implement this in terms of gtk_combo_box_get_active_iter(),
|
||||
instead of gtk_combo_box_get_active().
|
||||
|
||||
2004-07-29 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
|
||||
|
@ -193,36 +193,29 @@ static void
|
||||
gtk_combo_box_entry_active_changed (GtkComboBox *combo_box,
|
||||
gpointer user_data)
|
||||
{
|
||||
gint index;
|
||||
GtkComboBoxEntry *entry_box = GTK_COMBO_BOX_ENTRY (combo_box);
|
||||
GtkTreeModel *model;
|
||||
GtkTreeIter iter;
|
||||
gchar *str = NULL;
|
||||
|
||||
index = gtk_combo_box_get_active (combo_box);
|
||||
|
||||
if (gtk_combo_box_get_active_iter (combo_box, &iter))
|
||||
{
|
||||
g_signal_handlers_block_by_func (entry_box->priv->entry,
|
||||
gtk_combo_box_entry_contents_changed,
|
||||
combo_box);
|
||||
|
||||
if (index >= 0)
|
||||
{
|
||||
gchar *str = NULL;
|
||||
GtkTreeIter iter;
|
||||
GtkTreeModel *model;
|
||||
|
||||
model = gtk_combo_box_get_model (combo_box);
|
||||
|
||||
gtk_tree_model_iter_nth_child (model, &iter, NULL, index);
|
||||
gtk_tree_model_get (model, &iter,
|
||||
entry_box->priv->text_column, &str,
|
||||
-1);
|
||||
|
||||
gtk_entry_set_text (GTK_ENTRY (entry_box->priv->entry), str);
|
||||
|
||||
g_free (str);
|
||||
}
|
||||
|
||||
g_signal_handlers_unblock_by_func (entry_box->priv->entry,
|
||||
gtk_combo_box_entry_contents_changed,
|
||||
combo_box);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user