Commit 1949ca9e authored by Jeroen Zwartepoorte's avatar Jeroen Zwartepoorte Committed by Jeroen Zwartepoorte

use GINT_TO_POINTER instead of casting an int directly to a gpointer.

2005-07-06  Jeroen Zwartepoorte  <jeroen.zwartepoorte@gmail.com>

	* gdl/gdl-dock-master.c: (foreach_lock_unlock),
	(gdl_dock_master_lock_unlock):
	* gdl/gdl-dock-object.c: (gdl_dock_object_real_detach):
	* gdl/gdl-dock-placeholder.c: (gdl_dock_placeholder_set_property): use
	GINT_TO_POINTER instead of casting an int directly to a gpointer. Fixes
	compilation with gcc4.
parent b226425c
2005-07-06 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
* gdl/gdl-dock-master.c: (foreach_lock_unlock),
(gdl_dock_master_lock_unlock):
* gdl/gdl-dock-object.c: (gdl_dock_object_real_detach):
* gdl/gdl-dock-placeholder.c: (gdl_dock_placeholder_set_property): use
GINT_TO_POINTER instead of casting an int directly to a gpointer. Fixes
compilation with gcc4.
=== GDL 0.6.0 ===
2005-06-27 Naba Kumar <naba@gnome.org>
......
......@@ -306,7 +306,7 @@ foreach_lock_unlock (GdlDockItem *item,
if (gdl_dock_object_is_compound (GDL_DOCK_OBJECT (item)))
gtk_container_foreach (GTK_CONTAINER (item),
(GtkCallback) foreach_lock_unlock,
(gpointer) locked);
GINT_TO_POINTER (locked));
}
static void
......@@ -324,7 +324,7 @@ gdl_dock_master_lock_unlock (GdlDockMaster *master,
/* just to be sure hidden items are set too */
gdl_dock_master_foreach (master,
(GFunc) foreach_lock_unlock,
(gpointer) locked);
GINT_TO_POINTER (locked));
}
static void
......
......@@ -354,7 +354,7 @@ gdl_dock_object_real_detach (GdlDockObject *object,
if (recursive && gdl_dock_object_is_compound (object)) {
gtk_container_foreach (GTK_CONTAINER (object),
(GtkCallback) gdl_dock_object_detach,
(gpointer) recursive);
GINT_TO_POINTER (recursive));
}
/* detach the object itself */
......
......@@ -187,7 +187,7 @@ gdl_dock_placeholder_set_property (GObject *g_object,
if (ph->_priv) {
ph->_priv->placement_stack =
g_slist_prepend (ph->_priv->placement_stack,
(gpointer) g_value_get_enum (value));
GINT_TO_POINTER (g_value_get_enum (value)));
}
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment