Fix compiler warning
[pspp] / src / ui / gui / psppire-dictview.c
index 7893dcf34d5cc902fcdc9c7f3d5af6cc6b9464f9..fc2c0325613f81d8c7534e831efa232940766b2e 100644 (file)
@@ -512,13 +512,12 @@ set_tooltip_for_variable (GtkTreeView  *treeview,
 }
 
 static gboolean
-show_menu (PsppireDictView *dv, GdkEventButton *event, gpointer data)
+show_menu (PsppireDictView *dv, GdkEvent *event, gpointer data)
 {
-  if (event->button != 3)
+  if (((GdkEventButton *) event)->button != 3)
     return FALSE;
 
-  gtk_menu_popup (GTK_MENU (dv->menu), NULL, NULL, NULL, NULL,
-                 event->button, event->time);
+  gtk_menu_popup_at_pointer (GTK_MENU (dv->menu), event);
 
   return TRUE;
 }