[gtk+] Fix compilation warning
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compilation warning
- Date: Mon, 9 Nov 2009 08:37:45 +0000 (UTC)
commit 20f123531a70bce7c6b96b788aa22d7d1551d392
Author: Javier Jardón <jjardon gnome org>
Date: Mon Nov 9 02:25:06 2009 +0100
Fix compilation warning
Use GINT_TO_POINTER() and GPOINTER_TO_INT()
modules/other/gail/gailbutton.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 6fac18a..ace897c 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]