summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2009-11-09 02:25:06 +0100
committerJavier Jardón <jjardon@gnome.org>2009-11-09 09:36:49 +0100
commit20f123531a70bce7c6b96b788aa22d7d1551d392 (patch)
tree4939a13c2a468fe40f97c503fe41da1f5f7041dd
parent8831a4490264d9ac6ecac8014a066fabd2fbdc6e (diff)
downloadgtk+-20f123531a70bce7c6b96b788aa22d7d1551d392.tar.gz
Fix compilation warning
Use GINT_TO_POINTER() and GPOINTER_TO_INT()
-rw-r--r--modules/other/gail/gailbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 6fac18a5f2..ace897c5e6 100644
--- a/modules/other/gail/gailbutton.c
+++ b/modules/other/gail/gailbutton.c
@@ -473,7 +473,7 @@ gail_button_do_action (AtkAction *action,
{
button->action_queue = g_queue_new ();
}
- g_queue_push_head (button->action_queue, (gpointer) i);
+ g_queue_push_head (button->action_queue, GINT_TO_POINTER(i));
if (!button->action_idle_handler)
button->action_idle_handler = gdk_threads_add_idle (idle_do_action, button);
break;
@@ -516,7 +516,7 @@ idle_do_action (gpointer data)
button = GTK_BUTTON (widget);
while (!g_queue_is_empty (gail_button->action_queue))
{
- gint action_number = (gint) g_queue_pop_head (gail_button->action_queue);
+ gint action_number = GPOINTER_TO_INT(g_queue_pop_head (gail_button->action_queue));
if (gail_button->default_is_press)
{
if (action_number == 0)