diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-03-16 10:20:15 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-03-16 10:20:15 -0500 |
commit | 07646814d6b2e84896f578a3e9723e827a3ff70b (patch) | |
tree | 582e0a9b4a42e3b91118bdd39750edc9c57aa482 | |
parent | a9c338284c9b61c03261a021b176c4cbc864a79a (diff) | |
download | yelp-07646814d6b2e84896f578a3e9723e827a3ff70b.tar.gz |
[yelp-window.c] Use active_iter instead of iter_first in entry_location_selected
The rows haven't been reordered yet when this callback is called. I think
I broke this accidentally when changing some other callbacks.
-rw-r--r-- | src/yelp-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yelp-window.c b/src/yelp-window.c index 53fced6b..c1adb40c 100644 --- a/src/yelp-window.c +++ b/src/yelp-window.c @@ -181,7 +181,8 @@ yelp_window_init (YelpWindow *window) gtk_box_pack_start (GTK_BOX (vbox), priv->hbox, FALSE, FALSE, 0); priv->back_button = (GtkWidget *) gtk_tool_button_new_from_stock (GTK_STOCK_GO_BACK); - g_signal_connect (priv->back_button, "clicked", back_button_clicked, window); + g_signal_connect (priv->back_button, "clicked", + G_CALLBACK (back_button_clicked), window); gtk_box_pack_start (GTK_BOX (priv->hbox), priv->back_button, FALSE, FALSE, 0); priv->history = gtk_list_store_new (6, @@ -357,7 +358,7 @@ entry_location_selected (YelpLocationEntry *entry, gchar *uri; YelpWindowPrivate *priv = GET_PRIV (window); - gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->history), &iter); + gtk_combo_box_get_active_iter (GTK_COMBO_BOX (priv->entry), &iter); gtk_tree_model_get (GTK_TREE_MODEL (priv->history), &iter, COL_URI, &uri, -1); |