Mercurial > mplayer.hg
diff gui/dialog/menu.c @ 36776:5ea757ca6270
Fix careless pointer parameter handling.
User proper GLib macros to avoid pointer cast warnings.
This renders the usage of intptr_t redundant (introduced in r36858).
author | ib |
---|---|
date | Mon, 17 Feb 2014 02:30:49 +0000 |
parents | e788bcd9d49b |
children | e5c790cab2e8 |
line wrap: on
line diff
--- a/gui/dialog/menu.c Mon Feb 17 01:28:05 2014 +0000 +++ b/gui/dialog/menu.c Mon Feb 17 02:30:49 2014 +0000 @@ -137,7 +137,7 @@ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(Item),state); gtk_signal_connect_object( GTK_OBJECT(Item),"activate", - GTK_SIGNAL_FUNC(ActivateMenuItem),(gpointer)(intptr_t)Number ); + GTK_SIGNAL_FUNC(ActivateMenuItem),GINT_TO_POINTER(Number) ); gtk_menu_item_right_justify (GTK_MENU_ITEM (Item)); gtk_widget_show_all(Item); @@ -168,7 +168,7 @@ gtk_menu_append( GTK_MENU( SubMenu ),Item ); gtk_signal_connect_object( GTK_OBJECT(Item),"activate", - GTK_SIGNAL_FUNC(ActivateMenuItem),(gpointer)(intptr_t)Number ); + GTK_SIGNAL_FUNC(ActivateMenuItem),GINT_TO_POINTER(Number) ); gtk_menu_item_right_justify (GTK_MENU_ITEM (Item)); gtk_widget_show_all(Item);