changeset 3031:9cba6d37570e

Use glib cast macros
author Tomasz Mon <desowin@gmail.com>
date Fri, 10 Apr 2009 10:42:13 +0200
parents c442f8407dcb
children 6baa6eaf8290
files src/skins/ui_skinned_playlist.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_skinned_playlist.c	Fri Apr 10 01:46:08 2009 -0400
+++ b/src/skins/ui_skinned_playlist.c	Fri Apr 10 10:42:13 2009 +0200
@@ -960,11 +960,11 @@
         if (pos == -1) {
            ui_skinned_playlist_popup_hide (widget);
            ui_skinned_playlist_popup_timer_stop (widget);
-        } else if (! g_object_get_data ((GObject *) widget, "popup_active") ||
-         pos != (int) g_object_get_data ((GObject *) widget, "popup_position")) {
+        } else if (GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "popup_active") == 0) ||
+         pos != GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "popup_position"))) {
            ui_skinned_playlist_popup_hide (widget);
            ui_skinned_playlist_popup_timer_stop (widget);
-           g_object_set_data ((GObject *) widget, "popup_position", (void *) pos);
+           g_object_set_data (G_OBJECT(widget), "popup_position", GINT_TO_POINTER(pos));
            ui_skinned_playlist_popup_timer_start (widget);
         }
     }