aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@src.gnome.org>2008-08-14 18:30:41 +0800
committerDiego Escalante Urrelo <diegoe@src.gnome.org>2008-08-14 18:30:41 +0800
commit08f119db46c4de4d5d52f40563f427f830783f7e (patch)
tree453f1317b2b1a1eea0ccc320a8c16691b12b8ef2
parentbf27146de73f7e855ee9ae1cea7631face0622af (diff)
downloadgsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar.gz
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar.bz2
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar.lz
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar.xz
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.tar.zst
gsoc2013-epiphany-08f119db46c4de4d5d52f40563f427f830783f7e.zip
Remove an unneeded cast to pointer.
There's an uneeded GUINT_TO_POINTER in gtk_cell_layout_set_cell_data_func for extracell_data_func. We can use the le pointer to get the cols we want. svn path=/trunk/; revision=8412
-rw-r--r--lib/widgets/ephy-location-entry.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 9b2ff7838..ee530aae7 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -969,8 +969,11 @@ extracell_data_func (GtkCellLayout *cell_layout,
char *cdata;
GValue visible = { 0, };
GValue text = { 0, };
-
- gtk_tree_model_get (tree_model, iter, GPOINTER_TO_UINT(data), &cdata, -1);
+ EphyLocationEntryPrivate *priv;
+
+ priv = EPHY_LOCATION_ENTRY (data)->priv;
+
+ gtk_tree_model_get (tree_model, iter, priv->extra_col, &cdata, -1);
g_value_init (&text, G_TYPE_STRING);
g_value_init (&visible, G_TYPE_BOOLEAN);
@@ -1064,7 +1067,7 @@ ephy_location_entry_set_completion (EphyLocationEntry *le,
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (completion),
le->priv->extracell, extracell_data_func,
- GUINT_TO_POINTER (extra_col),
+ le,
NULL);
g_object_set (completion, "inline-selection", TRUE, NULL);