epiphany r8411 - branches/gnome-2-24/lib/widgets
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8411 - branches/gnome-2-24/lib/widgets
- Date: Thu, 14 Aug 2008 10:19:13 +0000 (UTC)
Author: diegoe
Date: Thu Aug 14 10:19:13 2008
New Revision: 8411
URL: http://svn.gnome.org/viewvc/epiphany?rev=8411&view=rev
Log:
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.
Modified:
branches/gnome-2-24/lib/widgets/ephy-location-entry.c
Modified: branches/gnome-2-24/lib/widgets/ephy-location-entry.c
==============================================================================
--- branches/gnome-2-24/lib/widgets/ephy-location-entry.c (original)
+++ branches/gnome-2-24/lib/widgets/ephy-location-entry.c Thu Aug 14 10:19:13 2008
@@ -969,8 +969,11 @@
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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]