comparison src/skins/ui_skinned_playlist.c @ 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
comparison
equal deleted inserted replaced
3030:c442f8407dcb 3031:9cba6d37570e
958 } else if (config.show_filepopup_for_tuple) { 958 } else if (config.show_filepopup_for_tuple) {
959 gint pos = ui_skinned_playlist_get_position(widget, event->x, event->y); 959 gint pos = ui_skinned_playlist_get_position(widget, event->x, event->y);
960 if (pos == -1) { 960 if (pos == -1) {
961 ui_skinned_playlist_popup_hide (widget); 961 ui_skinned_playlist_popup_hide (widget);
962 ui_skinned_playlist_popup_timer_stop (widget); 962 ui_skinned_playlist_popup_timer_stop (widget);
963 } else if (! g_object_get_data ((GObject *) widget, "popup_active") || 963 } else if (GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "popup_active") == 0) ||
964 pos != (int) g_object_get_data ((GObject *) widget, "popup_position")) { 964 pos != GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "popup_position"))) {
965 ui_skinned_playlist_popup_hide (widget); 965 ui_skinned_playlist_popup_hide (widget);
966 ui_skinned_playlist_popup_timer_stop (widget); 966 ui_skinned_playlist_popup_timer_stop (widget);
967 g_object_set_data ((GObject *) widget, "popup_position", (void *) pos); 967 g_object_set_data (G_OBJECT(widget), "popup_position", GINT_TO_POINTER(pos));
968 ui_skinned_playlist_popup_timer_start (widget); 968 ui_skinned_playlist_popup_timer_start (widget);
969 } 969 }
970 } 970 }
971 971
972 return TRUE; 972 return TRUE;