[yelp/yelp-3-0] [yelp-window.c] Use active_iter instead of iter_first in entry_location_selected
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/yelp-3-0] [yelp-window.c] Use active_iter instead of iter_first in entry_location_selected
- Date: Thu, 18 Mar 2010 01:52:23 +0000 (UTC)
commit 07646814d6b2e84896f578a3e9723e827a3ff70b
Author: Shaun McCance <shaunm gnome org>
Date: Tue Mar 16 10:20:15 2010 -0500
[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.
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 53fced6..c1adb40 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]