From 0278fdcbc21f7af34403c7c025cad7e18c484e94 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 18 Jul 2008 18:27:30 +0000 Subject: Don't do funny casts to avoid compiler warnings 2008-07-18 Federico Mena Quintero * demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't do funny casts to avoid compiler warnings. * demos/gtk-demo/textview.c (easter_egg_callback): Likewise. * gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise. * gtk/gtkmodules.c (load_module): Likewise. * gtk/gtkselection.c (gtk_selection_convert): Likewise. * gtk/gtktipsquery.c (gtk_tips_query_event): Likewise. * gtk/queryimmodules.c (query_module): Likewise. * tests/testgtk.c (create_gridded_geometry, create_key_lookup) (find_widget_at_pointer): Likewise. Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=20862 --- gtk/gtktipsquery.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gtk/gtktipsquery.c') diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c index 52a329ee2c..e80796efeb 100644 --- a/gtk/gtktipsquery.c +++ b/gtk/gtktipsquery.c @@ -470,7 +470,11 @@ gtk_tips_query_event (GtkWidget *widget, pointer_window = NULL; event_widget = NULL; if (pointer_window) - gdk_window_get_user_data (pointer_window, (gpointer*) &event_widget); + { + gpointer event_widget_ptr; + gdk_window_get_user_data (pointer_window, &event_widget_ptr); + event_widget = event_widget_ptr; + } gtk_tips_query_emit_widget_entered (tips_query, event_widget); event_handled = TRUE; break; -- cgit v1.2.1