summaryrefslogtreecommitdiff
path: root/gtk/gtktipsquery.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2008-07-18 18:27:30 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2008-07-18 18:27:30 +0000
commit0278fdcbc21f7af34403c7c025cad7e18c484e94 (patch)
tree225cf90d6729e1f1d387f9ebdfcbcd44ee00c4c9 /gtk/gtktipsquery.c
parentcf68d46c646f807d3ec926af20915ac57c66c8d7 (diff)
downloadgtk+-0278fdcbc21f7af34403c7c025cad7e18c484e94.tar.gz
Don't do funny casts to avoid compiler warnings
2008-07-18 Federico Mena Quintero <federico@novell.com> * 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 <federico@novell.com> svn path=/trunk/; revision=20862
Diffstat (limited to 'gtk/gtktipsquery.c')
-rw-r--r--gtk/gtktipsquery.c6
1 files changed, 5 insertions, 1 deletions
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;